Avoid MISTAKES when using GLOBAL variables in a Python 🐍 function #shorts

preview_player
Показать описание
You must use the global keyword to mark a variable as global. Otherwise if you set the value inside the function it will create a local variable with same name.
Рекомендации по теме
Комментарии
Автор

dose the variable which is 1000 is changed ?

sharokhkeshawarz
welcome to shbcf.ru