[Tutor] Error in Game
Joel Goldstick
joel.goldstick at gmail.com
Tue Jul 2 23:20:06 CEST 2013
On Tue, Jul 2, 2013 at 4:22 PM, Jack Little <jacklittlemc at yahoo.com> wrote:
> The player has an option to upgrade or not. I know the code is correct,
> but it doesn't send the player to the shop. Here is the code:
>
> def lvl3_2():
> print "You beat level 3!"
> print "Congratulations!"
> print "You have liberated the Bristol Channel!"
> print "[Y] to go to the shop or [N] to advance."
> final1=raw_input(">>")
> if final1.lower()=="y":
> shop2()
> elif final1.lower()=="n":
> lvl4()
>
>
What does 'upgrade' have to do with this code?
when you run this code, what is the traceback ?
How do you know the code is correct? Isn't the definition of the code
being correct, that it will perform the logic you intended?
>
>
> Help?
>
> _______________________________________________
> Tutor maillist - Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>
--
Joel Goldstick
http://joelgoldstick.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20130702/6afa07b5/attachment.html>
More information about the Tutor
mailing list