#๐Ÿ”’ Help with setting up challenges

12 messages ยท Page 1 of 1 (latest)

shy fern
#

I need help with setting up some challenges in my code. First of all, whenever I am able to move onto the next room, it displays the name of the current AND previous room, when it should only be the current room. I also want the questions to be answered before the user can move onto room 1.
https://paste.pythondiscord.com/ZGHA

night flameBOT
#

@shy fern

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

shy fern
#

can somebody please help me

#

please

#

Thanks guys ๐Ÿ‘

rancid drum
#

you have some logical errors in your code

#

first, the reason it prints the previous room before the current room is because you update current_room after printing roomlist[current_room][0]

#

it should be updated before

#

second, i think you need to put the "Challenge 2" code inside the while loop, otherwise it will never run

shy fern
#

Thank you let me try

night flameBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.