If there are two python files say 1.py and 2.py, will a variable declared as global in file1.py also be global in file2.py?

Viewed 46

suppose there is a variable "age" in 1.py and it is declared global inside 1.py. will the same variable "age" also be automatically declared as global in 2.py, and any other subsequent python files in the same directory?

0 Answers
Related