Answer the question
In order to leave comments, you need to log in
How to replace global variables?
The point is the following.
There is a python bot, but I use global variables there (here is such a "simple person"). And at the moment when another (new) user "started" a conversation with the bot, these variables are "overwritten" by the latest ones.
Global variables 3. The algorithm is as follows:
"{} - {} - {}".format(name, age, car)
Answer the question
In order to leave comments, you need to log in
Yes, write your own class, and create instances of it.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question