greeting = input("Hello, welcome to hell.\n ") confirmation = input("Would you like to proceed?\n ") nothing = [1, 2] user_info = [greeting, confirmation] one_question_prompt = [ "Are you sure this is the information?\n(a)Yes\n(b)No\n" ] class Question0: def __init__(self, prompt1, answer1): self.prompt = prompt1 self.answer = answer1 questions1 = [Question0(one_question_prompt[0], "a")] def run_test0(questions1): score = 0 for question in questions1: answer = input(question.prompt) if answer == question.answer: score = True run_test0(questions1) name1 = input("Enter your name: ") user_info_name = [name1] print("\n\nHello " + name1 + "! This is just a short automated text machine which will ask you random questions. To answer the multiple choice, please make sure to either type lowercase letters. \n\n") print("Questionnaire: \n") prompt0 = input("Where in hell do you wanna go \n(a)Downtown\n(b)Village\n(c)Outskirts\n(d)Boondocks\n(e)Shiv Corp\n(f)Nowhere\n\n") prompt1 = input("\nDo you hate homework?\n(a)Yes\n(b)No\n\n") prompt2 = input("\nDo you like this code?\n(a)Yes\n(b)No\n\n") class Question: def __init__(self, prompt, answer): self.prompt = prompt self.answer = answer print("\n*Note that this test is just a test m8. But, you can go to hell now ;).")
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter