O
O
Orakin2021-06-15 14:04:43
Python
Orakin, 2021-06-15 14:04:43

How to store the value of a variable in python?

How to store the value of a variable so that when the code is run again, the variable is the same

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Mikhail Krostelev, 2021-06-15
@Orakin

To a file or database. Read at startup.

Z
ZIK1337, 2021-06-15
@ZIK1337

a convenient library for this is
https://docs.python.org/3/library/configparser.html

T
tokyo_ghoul4, 2021-06-15
@tokyo_ghoul4

Write to the database

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question