Sep-02-2023, 10:50 PM
(This post was last modified: Sep-02-2023, 10:50 PM by deanhystad.)
Yes, pass is a placeholder for a block of code. That is what it is doing here:
I drew out the graph to the best of my understanding. It is far more complicated than you think. Currently it is incomplete, but it looks like you should be able to return to the shelter and adopt the cat again forever and ever.
You are trying to solve this problem in the hardest way possible.
if adopt == "1": passOnce you enter the block of code you remove the placeholder. Why is pass still here?
if adopt == "2": print("Oh well! You go home with no cat") pass if adopt == "3": answers3 = ['You receive money and go home happily!', 'The workers laugh at you and have you escorted out of the propery, start again for another ending!','The workers laugh at you and have you escorted out of the propery, start again for another ending!', 'The workers laugh at you and have you escorted out of the propery, start again for another ending!'] import random print(random.choice(answers3)) #Take home routeSince pass does nothing except act as a stand-in there is no harm leaving it there, but others looking at your code will think "That's odd." and look for meaning.
I drew out the graph to the best of my understanding. It is far more complicated than you think. Currently it is incomplete, but it looks like you should be able to return to the shelter and adopt the cat again forever and ever.
You are trying to solve this problem in the hardest way possible.