Redus Russ

Generation

generate functionFri, 10 May 2024

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

def dialog(question, options): while True: print(question) for i in range(len(options)): print(options[i]) answer = input('Enter your choice: ') if answer in options: return answer else: print('Invalid choice.') # Ask the user for a number def ask_number(question, min, max)

Questions about programming?Chat with your personal AI assistant