Redus Russ

Generation

generate functionMon, 27 Feb 2023

A basic dialog story game based in the console with yes or no answers only

def game(): dead("You died.") def start(): print("Hello") print("Will you play a game? yes or no") choice = input(">>> ") if choice == "yes": print("Great!") elif choice == "no": dead("I guess you are too scared. Sorry.") else: dead("I don't understand") def dead(why): print(why, "Good job!") exit(0) start()

Questions about programming?Chat with your personal AI assistant