why the assign() function does not change the string into integer? the assign function does not return the values i set in if statement!
p1 = raw_input("Player 1 ?")
p2 = raw_input("Player 2 ?")
def assign(n):
if n == "r":
return (1)
elif n == "s":
n = 2
elif n == "p":
n = 3
else:
print "Wrong input!"
return n
assign(p1)
assign(p2)
print p1
print p2
if p1 - p2 == 0:
print "Tie!"
elif (p1 - p2) / 2 != 0:
print " Player 1 is winner!"
else:
print" Player 2 is the winner!"