Example & Tutorial understanding programming in easy ways.

How we can access the global variable in Python ?

program:

x=3

def func():

     global x

     print(x)

func()

Output:

3

Read More →