[Tutor] Fwd: Fw: Traceback

Danny Yoo dyoo at hashcollision.org
Thu Nov 20 03:34:18 CET 2014


---------- Forwarded message ----------
From: niyana morgan <niyanaxx95 at gmail.com>
Date: Wed, Nov 19, 2014 at 5:43 PM
Subject: Re: [Tutor] Fw: Traceback
To: Danny Yoo <dyoo at hashcollision.org>


No I am still stuck on what to do and this is a major project for my class.

On Nov 19, 2014 6:21 PM, "Danny Yoo" <dyoo at hashcollision.org> wrote:
>
> >> 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 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.
>
>
>
> Following up.  I don't think I've heard back about this.  Did you get
> help from someone else?  Has the problem here been resolved?


More information about the Tutor mailing list