So, then, what is the global keyword?
Answer / Mohammad Rashid Ansari
In Python, the `global` keyword is used to declare a variable as global when it's within a function. This allows the function to access and modify global variables.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is a namespace in python?
What is __ init__ in python?
Is c++ or python better?
How fast can you learn python?
Write a program in python to produce star triangle.
What is decorator in python?
Explain me what is the common way for the flask script to work?
What is a python method?
How to concatenate two lists in python?
Name a few methods that are used to implement functionally oriented programming in python?
What are the differences in the deep and shallow copy?
How are arguments passed - by reference or by value?