Python Forum
dynamically create variables' names in python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
dynamically create variables' names in python
#2
Although possible, creating variable names dynamically is real bad idea. Use proper data structures like dict, list, etc. instead (your question imply you will have multiple variables that you want to create dynamically)
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Messages In This Thread
RE: dynamically create variables' names in python - by buran - Sep-17-2019, 05:45 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020