x = 10

def func():
 global x
 x = x * x 
 print("Square of x: ", x)
func() 
by