Saved Bookmarks
| 1. |
Write the basic rules for global keyword in python? |
|
Answer» The basic rules for global keyword in Python are: 1. When we define a variable outside a function, it’s global by default. You don’t have to use global keyword. 2. We use global keyword to read and write a global variable inside a function. 3. Use of global keyword outside a function has no effect |
|