Forwarding to tutor.

---------- Forwarded message ----------
From: Danny Yoo <[email protected]>
Date: Tue, Nov 18, 2014 at 4:56 PM
Subject: Re: [Tutor] Fw: Traceback
To: niyana morgan <[email protected]>


On Tue, Nov 18, 2014 at 4:48 PM, niyana morgan <[email protected]> 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:
http://www.greenteapress.com/thinkpython/html/thinkpython007.html#toc66

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
problem.
_______________________________________________
Tutor maillist  -  [email protected]
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to