Answer the question
In order to leave comments, you need to log in
How to create a variable with the desired name in python?
I have a voice recorder. The user makes a record and it is stored in the record1 variable, another one is stored in record2, and so on. I created 8 variables of this kind. And if the user makes a bunch of records. The programmer does not prescribe a million variables in each program. How to make it so that, for example, record 132 is saved under the name record132, and I did not write the name of this variable
Answer the question
In order to leave comments, you need to log in
Please learn the basics of Python first!
https://pythonworld.ru/tipy-dannyx-v-python/spiski...
https://pythonworld.ru/tipy-dannyx-v-python/slovar...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question