S
S
Shroud228lol2020-06-03 11:07:31
Python
Shroud228lol, 2020-06-03 11:07:31

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

2 answer(s)
D
Dmitry Shitskov, 2020-06-03
@Zarom

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 question

Ask a Question

731 491 924 answers to any question