Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector
Re: Ergent help required with my python program Sure. continue is a command similar to break, with one exception, that instead of breaking the loop completely, it only stops its current iteration and moves it to the nextone. If I didn't use continue there, after the else statement, program

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : vaibhavbhandari via Audiogames-reflector
Re: Ergent help required with my python program @4 and 5, Thanks for your help. I was able to do it. @5, I have a question. When you demonstrated the integrated while loop, I understood that you took w as a variable in which you wrote the loop. I have also understood that in the end, you

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : Rastislav Kiss via Audiogames-reflector
Re: Ergent help required with my python program Hi there,first of all, you have a bug in the code. if(w=="hot"): print("Oh now I wish I wasn't in this computer and could go out there and enjoy the heat!")You see?... Hot weather is not enjoyable!!! heh,

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Ergent help required with my python program Post 2's approach would work, but here is my solution.def gather_user_input(question): """Gathers the user input to a given question. Will continue to repeat the question until the user types in anything. Parameters:

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Ergent help required with my python program Post 2's approach would work, but here is my solution.def gather_user_input(question): """Gathers the user input to a given question. Will continue to repeat the question until the user types in anything. Parameters:

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Ergent help required with my python program Post 2's approach would work, but here is my solution.def gather_user_input(question): """Gathers the user input to a given question. Will continue to repeat the question until the user types in anything. Parameters:

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
Re: Ergent help required with my python program Post 2's approach would work, but here is my solution.def gather_user_input(question): """Gathers the user input to a given question. Will continue to repeat the question until a valid word from the list is chosen.

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : vaibhavbhandari via Audiogames-reflector
Re: Ergent help required with my python program @2, Yes I did put the invalid text in the else command but when I tried to put that entire thing in a while loop, it became an unending loop in which it did repeat the question again and again no matter if the answer is correct or wrong. I am

Re: Ergent help required with my python program

2020-01-15 Thread AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
Re: Ergent help required with my python program For invalid input, just attach an else statement on the end of your elif chain, IE:elif(w=="cold"): ... else: print("invalid")For repeating, you can encapsulate your code in a while loop. Making it go t