what are global variables | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

what are global variables

21st Jun 2020, 1:18 AM
Paapa Fahodzi
Paapa Fahodzi - avatar
4 Answers
+ 1
In Python, a variable declared outside of the function or in global scope is known as a global variable. This means that a global variable can be accessed inside or outside of the function. https://www.programiz.com/python-programming/global-local-nonlocal-variables Thanks for your question and happy coding.
21st Jun 2020, 1:24 AM
James Clark I. Vinarao
James Clark I. Vinarao - avatar
+ 1
global variables are variables which are defined outside a function and can be accessed throughout the program.
21st Jun 2020, 1:24 AM
M Nitish Kumar
M Nitish Kumar - avatar
0
In Python, a variable declared outside of the function or in global scope is known as a global variable. This means that a global variable can be accessed inside or outside of the function. Thanks for your question and happy coding.
22nd Jun 2020, 2:55 PM
Apurbow Kumar Das
Apurbow Kumar Das - avatar
0
Kratisoc It's not your chatting place So please remove this comment, & DM any user if you want to say hi , Hello Why? He's just being nice
8th Jul 2020, 12:44 PM
Gurseerit Singh Chahal ✓
Gurseerit Singh Chahal ✓ - avatar