"Ben Ganzfried" <ben.ganzfr...@gmail.com> wrote
x = input("First x is: ") y = input("First y is: ")
input() reads strings
compare(x,y)
the character '1' is less than the character '5' so far as Python is concerned
When I do simply compare(10, 5) from the shell,
You are using integers. What happens if you use strings?
compare('10','5')
HTH, -- Alan Gauld Author of the Learn to Program web site http://www.alan-g.me.uk/ _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor