[Tutor] Fwd: Fw: Traceback

Danny Yoo dyoo at hashcollision.org
Wed Nov 19 01:56:31 CET 2014

Forwarding to tutor.

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

On Tue, Nov 18, 2014 at 4:48 PM, niyana morgan <niyanaxx95 at gmail.com> wrote:
> Read the link. So I need to put
> Return roomWidth and roomLength? ??

You may want to practice writing functions that return useful values.

Save the work you've go so far, and then open up a new program.

Go through that link again in:

but this time, also do Exercise 1 in that chapter.

    Write a compare function that returns 1 if x > y, 0 if x == y, and
-1 if x < y.

Do this and show us what it looks like.

I'm asking you to do this as side work because, at the moment, you've
just been exposed to a new thing, and you're tempted to just hack it
into your original program to make it "work".  This is not the best
approach.  Instead: practice the new technique on small programs.
Then once you know what you're doing, you can go back to the original

More information about the Tutor mailing list