user image

Preeti Tripathi

Job Interview Skills
English
2 years ago

16. Can you explain Python's local and global variables in brief?

user image

Abhishek Mishra

2 years ago

Any variable declared inside a function is referred to as a local variable, and only that function has access to it. While Global variable means any variable defined outside of a function and any function found throughout the program can simply access it.

Recent Doubts

Close [x]