Re: [Tutor] Fw: Traceback

2014-11-19 Thread Danny Yoo
> On Nov 19, 2014 6:21 PM, "Danny Yoo" wrote: >> >Exercise 1 >> >Write a compare function that returns 1 if x > y, 0 if x == y, and >> > -1 if x < y. >> > >> > >> > I have to get back to work so hopefully others on the mailing list can >> > help you. Please continue to reply to the list.

Re: [Tutor] Fw: Traceback

2014-11-19 Thread Danny Yoo
>> Exercise 1: >> def distance(x1, y1, x2, y2): >> dx = x2 - x1 >> dy = y2 - y1 >> dsquared = dx**2 + dy**2 >> result = math.sqrt(dsquared) >> print(result) >> return result > > > That's not exercise 1. Try again. > > >Exercise 1 >Write a compare function that retur

Re: [Tutor] Fw: Traceback

2014-11-18 Thread niyana morgan
Okay yeah this helping. I believe getNumber does actually return a number. On Nov 18, 2014 7:29 PM, "Danny Yoo" wrote: > On Tue, Nov 18, 2014 at 1:46 PM, wrote: > > I get this message: > > Traceback (most recent call last): > > File "C:\Program Files (x86)\Wing IDE 101 > > 5.0\src\debug\tserv

Re: [Tutor] Fw: Traceback

2014-11-18 Thread Danny Yoo
On Tue, Nov 18, 2014 at 5:01 PM, Danny Yoo wrote: > -- Forwarded message -- > From: niyana morgan > Date: Tue, Nov 18, 2014 at 4:59 PM > Subject: Re: [Tutor] Fw: Traceback > To: Danny Yoo > > > Exercise 1: > def distance(x1, y1, x2, y2): > d

Re: [Tutor] Fw: Traceback

2014-11-18 Thread Danny Yoo
On Tue, Nov 18, 2014 at 4:40 PM, Danny Yoo wrote: > On Tue, Nov 18, 2014 at 4:34 PM, niyana morgan wrote: >> Okay yeah this helping. >> I believe getNumber does actually return a number. > > > Ok. But check again. :p In your original getNumber, you may be thinking of the concept of "output v

Re: [Tutor] Fw: Traceback

2014-11-18 Thread Danny Yoo
On Tue, Nov 18, 2014 at 4:34 PM, niyana morgan wrote: > Okay yeah this helping. > I believe getNumber does actually return a number. Ok. But check again. :p You should be using a "return" statement in some part of there. Read: http://www.greenteapress.com/thinkpython/html/thinkpython00

Re: [Tutor] Fw: Traceback

2014-11-18 Thread Danny Yoo
On Tue, Nov 18, 2014 at 1:46 PM, wrote: > I get this message: > Traceback (most recent call last): > File "C:\Program Files (x86)\Wing IDE 101 > 5.0\src\debug\tserver\_sandbox.py", line 87, in > File "C:\Program Files (x86)\Wing IDE 101 > 5.0\src\debug\tserver\_sandbox.py", line 20, in main

[Tutor] Fw: Traceback

2014-11-18 Thread niyanaxx95
I get this message: Traceback (most recent call last): File "C:\Program Files (x86)\Wing IDE 101 5.0\src\debug\tserver\_sandbox.py", line 87, in File "C:\Program Files (x86)\Wing IDE 101 5.0\src\debug\tserver\_sandbox.py", line 20, in main File "C:\Program Files (x86)\Wing IDE 101 5.0\src