About 3,440,000 results
Open links in new tab
  1. How can I determine a Python variable's type? - Stack Overflow

    Python doesn't have 16/32 bit or signed/unsigned int, it has: (1) integers (unlimited precision: "long integer" was removed in python 3); (2) floating point numbers (typically equivalent to a …

  2. python - Determine the type of an object? - Stack Overflow

    2398 There are two built-in functions that help you identify the type of an object. You can use type() if you need the exact type of an object, and isinstance() to check an object’s type …

  3. How to prrint the Data Type in Python? - Stack Overflow

    I am new to Python. I have written a simple code to know the Data type of input. Here is my code. I gave 2 inputs that are getting convert as a "String". Using the "If" condition to match inputs d...

  4. python - Print a variable's name and value - Stack Overflow

    print x # easy to type, but no context print 'x=',x # more context, harder to type 12 x= 12 How can write a function that will take a variable or name of a variable and print its name and value? I'm …

  5. python - Writing code to print out the data type of variables

    Apr 12, 2022 · However, the variable tripped me up. The input file is the variable which is a csv data file. Now I am confused, does that mean the xlsx file or each data type within that file? …

  6. python - How to print types within a list - Stack Overflow

    Jan 27, 2016 · In the python code above type () function is used to determine the data type of variable (i). And end () is used to replace the end of the output with the value inside its' …

  7. python - Print Statement using two data types - Stack Overflow

    Oct 25, 2022 · print("this is your "+t+" warning") t is supposed to be an integer. this is probably a silly and stupid question but is it possible to print a variable (in the case t with an int value) and …

  8. python - Identifying the data type of an input - Stack Overflow

    Mar 5, 2014 · I'm using Python 3.2.3 and I know I could use type() to get the type of the data but in Python all user inputs are taken as strings and I don't know how to determine whether the …

  9. printing - Print variable and a string in python - Stack Overflow

    If the Python version you installed is 3.6.1, you can print strings and a variable through a single line of code. For example the first string is "I have", the second string is "US Dollars" and the …

  10. python - How can I print multiple things (fixed text and/or variable ...

    I want it to print out Total score for Alice is 100, but instead I get Total score for %s is %s Alice 100. How can I get everything to print in the right order with the right formatting? See also: …