Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Global variable in python
1 ответ
+ 4
What is your question?
In case you are trying to use the global x inside of the function, you need to specify
global x
in the beginning of the function.