About 14,500,000 results
Open links in new tab
  1. python - How do I create variable variables? - Stack Overflow

    Is it possible to do something like this in Python? What can go wrong? If you are just trying to look up an existing variable by its name, see How can I select a variable by (string) name?. However, first …

  2. What is the purpose of the single underscore "_" variable in Python?

    May 5, 2011 · An unused variable is often hiding a bug/typo (e.g. set day but use dya in the next line). The pattern matching feature added in Python 3.10 elevated this usage from "convention" to …

  3. python - What do * and ** before a variable name mean in a function ...

    What do * and ** before a variable name mean in a function signature? [duplicate] Asked 13 years, 5 months ago Modified 2 years, 11 months ago Viewed 135k times

  4. python - How can I use a global variable in a function? - Stack Overflow

    Jul 11, 2016 · In Python, the module is the natural place for global data: Each module has its own private symbol table, which is used as the global symbol table by all functions defined in the module. …

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

    3 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 variable …

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

    How can write a function that will take a variable or name of a variable and print its name and value? I'm interested exclusively in debugging output, this won't be incorporated into production code.

  7. How can I access environment variables in Python?

    How can I get the value of an environment variable in Python?

  8. How to concatenate a fixed string and a variable in Python

    How to concatenate a fixed string and a variable in Python [duplicate] Asked 12 years, 4 months ago Modified 3 years, 8 months ago Viewed 334k times

  9. python - Class (static) variables and methods - Stack Overflow

    Sep 16, 2008 · Although it doesn't say anything specific about static variables or methods, the Python tutorial has some relevant information on classes and class objects. @Steve Johnson also answered …

  10. python - Short description of the scoping rules - Stack Overflow

    Nov 15, 2008 · The from __future__ import print_function actually does not import the print function anywhere in Python 2 - instead it just disables the parsing rules for print statement in the current …