Re: [Tutor] Coding for a Secret Message in a Game

2013-12-14 Thread Sky blaze
Thank you for the answers! Unfortunately, I haven't had the time to test them out, but these answers make a lot of sense, and I'm sure they'd work. Again, thanks! *See ya!* -Skyblaze101 On Fri, Dec 13, 2013 at 2:20 PM, Danny Yoo wrote: > Whoops, made a small typo in the program I

Re: [Tutor] Coding for a Secret Message in a Game

2013-12-13 Thread Danny Yoo
Whoops, made a small typo in the program I sent. Let me rewrite again: ### def GetFailureMessage(failure_count): """Returns a message given how many times we've seen failure.""" if failure_count <= 1: return "Try again"

Re: [Tutor] Coding for a Secret Message in a Game

2013-12-13 Thread Danny Yoo
As you've just started Python, you may not know about functions yet, but the question you're asking sounds very much like one that a function will help with. You can design functions that do a specific job: in this case, it sounds like you're asking for a function that takes the number of failures

Re: [Tutor] Coding for a Secret Message in a Game

2013-12-13 Thread spir
On 12/13/2013 05:10 AM, Sky blaze wrote: Hi, I'm a newbie Python programmer. I was introduced to Python via the Hour of Code, and after completing all three of Grok Learning's tutorials, I was inspired to create a text-based RPG adventure. I composed this e-mail after searching for a forum for Py

Re: [Tutor] Coding for a Secret Message in a Game

2013-12-13 Thread Steven D'Aprano
On Thu, Dec 12, 2013 at 11:10:31PM -0500, Sky blaze wrote: > Here's the code I currently have so far: > print("===INSTRUCTIONS===") > input(">> ") Are you using Python 3? Is so, that's fine, but in Python 2 you should use raw_input instead. > print("When you see a \'>>\', hit Enter to advance t

Re: [Tutor] Coding for a Secret Message in a Game

2013-12-13 Thread Chris “Kwpolska” Warrick
On Fri, Dec 13, 2013 at 5:10 AM, Sky blaze wrote: > Hi, I'm a newbie Python programmer. I was introduced to Python via the Hour > of Code, and after completing all three of Grok Learning's tutorials, I was > inspired to create a text-based RPG adventure. I composed this e-mail after > searching fo

[Tutor] Coding for a Secret Message in a Game

2013-12-13 Thread Sky blaze
Hi, I'm a newbie Python programmer. I was introduced to Python via the Hour of Code, and after completing all three of Grok Learning's tutorials, I was inspired to create a text-based RPG adventure. I composed this e-mail after searching for a forum for Python, and this address showed up in one of