I was doing some experimenting while going through Coursera courses on functions and variables.
def x():
print(20)
y = x
y()
print(y())
The results I got back were:
20
20
None
Why is there an extra None being printed? What is the logic behind this?