Python Global Variable Example


Program
a=20 # Global Variable def localvariable(): global b b=10 print (b) localvariable() print(a) print(b)
Input
Output

Similar Program

# Program Language
No Data Available
# Program Language