I was trying to play around with the input function. However, it seems that this code is not correct, I looked to see examples online but they tend to be basic and what i was trying to do was slightly above basic. Also, is it possible to put the return function instead of the print one? if not why? I'm new to this so if these all sound stupid please forgive me.
cheers!
def user_data(x):
age = input("how old are you?")
if age == 20:
print("you win")
else:
print("you lose")