Практикуя питона
def f(x):
y = 1
x = x + y
print ('x= ', x)
print ('p= ', p)
return x
p = 20
x = 3
y = 2
z = f(x)
print ("z= ",z)
print ("x=",x)
print ("y=",y)
x = int(input("enter:"))
Faithful Flamingo