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