About 17,900 results
Open links in new tab
  1. Changing a variable's name on each iteration of a loop - Python …

    Jan 3, 2020 · Is it possible in python to change the name of a variable on each iteration of a loop? For example: for i in range (10): variableNameToChange+i="iterationNumber=="+str (i)I know …

  2. Can I use iteration to create variable names? - Python Forum

    Oct 17, 2019 · For this program, the input will be table data and the output will be a table. In order to solicit data, I'm asking how many rows and then iterating to get the data for each row. Can I …

  3. dynamically create variables' names in python

    Sep 24, 2019 · dynamically create variables' names in python Python Forum Python Coding Data Science

  4. Naming Conventions (PEP 8) - Python Forum

    Aug 6, 2020 · [Migrated from old forum, originally posted 22 February 2013.] NOTE: There's definitely wiggle room when it comes to these conventions. Some are more important than …

  5. How to print variable name? - Python Forum

    Oct 20, 2019 · What names should be displayed length(2, 3) (assuming that there is no name pointing to values 2 and 3)? With Python 3.8 anyone can have variable names very easily by …

  6. variable as dictionary name? - Python Forum

    Apr 27, 2020 · Line 3 doesn't even create a variable with the name X0 for example - it just sets the value of the variable to be that string. Both lines 3 and 4 are doing the same kind of thing - …

  7. Best way to accommodate unknown number of variables?

    May 30, 2022 · Hi all, I've run up against this issue a number of times so I thought I'd seek advice on the best way to handle it. Suppose I have a large data file and I don't know how often a …

  8. how to display name of a list? - Python Forum

    Dec 27, 2021 · Backward tracing from a value to the name is problematic. An object may have multiple variable names pointing to it - and which one do you want? Example:

  9. Need help on how to include single quotes on data of variable string

    Jan 10, 2023 · I am not unable to figure out why Python cannot include single quotes on to the value of the variable string. I am trying to add single quote on the beginning and at the end of …

  10. dynamic variable name declaration in OOP style project problem

    Oct 22, 2023 · Ok so basically im trying to build a flight tracker app. And i have a problem with the gui py file. I have a button that generates variable names using fstrings. an example follows …