Sep-02-2023, 09:58 PM
Hey, I'm doing a school project and I can't find my error on replit, could someone help me and correct it? Go easy on me as I just picked up coding yesterday lol 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#Start of adventure def intro(): print ( "You encounter a stray cat on the sidewalk!" ) intro = input ( "1. Call the animal shelter, 2. Take her home, 3. Ignore her and keep walking: " ) intro() #Animal shelter route if intro = = "1" : import random print (random.choice(answers1)) answers1 = [ 'They take her, start again for another ending!' , 'The animal shelter asks you to adopt!' , 'The cat follows you home!' , 'The cat follows you home!' ] if answers1 = = 'The animal shelter asks you to adopt!' : adopt = input ( "1. Accept" , "2. Refuse" , "3. Ask for compensation" ) if adopt = = "1" : pass 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 route if intro = = "2" : answers2 = [ 'She escapes after a day!' , 'You now have a lifelong companion!' , 'Other cats start showing up to your front door!' , 'Other cats start showing up to your front door!' ] import random print (random.choice(answers2)) if answers2 = = 'She escapes after a day!' : catescape = [ 'She is taken back to the animal shelter, start again for another ending!' , 'You find her!' , 'You find her!' , 'You find her!' ] import random print (random.choice(catescape)) |