Re: [Tutor] Compare function!

2013-10-14 Thread Alan Gauld
On 14/10/13 15:41, Sammy Cornet wrote: . In which I´m want to get the user to prompt for the values of a and b. So where is the code where you prompt the user and read input. All we can see is a single function? For some reason I can´t run it. The follwing is what I have written on my scr

[Tutor] Compare function!

2013-10-14 Thread Sammy Cornet
Hello!I´m using Idle (Python 2.7,5 version). I´m trying to write a program of compare function that returns 1 if a > b , 0 if a == b , and -1 if a < b . In which I´m want to get the user to prompt for the values of a and b. For some reason I can´t run it. The follwing is what I have written on