so I have started with learn python the hard way website and really enjoy it, I was just trying to experiment and have no real purpose of my code. im still having a hard understanding the use of DEF but added it to learn. no matter what number I enter I receive the "not correct" answer. I added the other print statements just to confirm my variables. I know the code is sloppy but just trying to understand the logic of python.
user = 10
def hi():
# something
# something
hi.bye = raw_input("print a number ->");
hi()
print ("user is %r") % (user);
print (hi.bye)
if hi.bye < user:
print ("you picked %r") % hi.bye
else:
print("not correct")