Which keyword is used to assign global variable in a function?
Answers
Answered by
0
Hello mate!!☺️
When we create a variable inside a function, it's local by default. When we define a variable outside of a function, it's global by default. You don't have to use global keyword. We use global keyword to read and write a global variable inside a function.
Similar questions
Hindi,
5 months ago
English,
5 months ago
Science,
5 months ago
Computer Science,
10 months ago
Psychology,
10 months ago
Biology,
11 months ago
English,
11 months ago
Math,
11 months ago