name = input("Hello! Please enter your name: ") print(" ") print("Hi " + name + "! Welcome to the Software Game :)\nPlease answer a few questions:") print(" ") q1 = str(input("The first algorithm was written by:\n a) Ada Lovelace\n b) Steve Wozniak\n c) Alan Turing" + "\n")) print(" ") if q1 == "a": print ("You are absolutely right!") elif q1 == "b": print ("Nope, wrong answer") elif q1 == "c": print ("Nope, wrong answer") else: print ("Please enter a, b or c") print(" ") q2 = str(input("Programming languages are used to implement numeric codes. True or false?:\n a) True\n b) False" + "\n")) print(" ") if q2 == "a": print ("False! Programming languages are used to implement algorithms.") elif q2 == "b": print ("You're right!") else: print ("Please enter a or b") print(" ") q3 = str(input("Harmful and disruptive software is called:\n a) Utilities\n b) Malware\n c) System software" + "\n")) print(" ") if q3 == "a": print ("Oops, no") elif q3 == "b": print ("Exactly!") elif q3 == "c": print ("Oops, no") else: print ("Please enter a, b or c") print(" ") q4 = str(input("What kind of software comes with a free software license?\n a) Freeware\n b) Commercial software\n c) Open source software" + "\n")) print(" ") if q4 == "a": print ("Nope") elif q4 == "b": print ("Nope") elif q4 == "c": print ("Yes!") else: print ("Please enter a, b or c") print(" ") q5 = str(input("Is Python an open source programming language?\n a) Yes\n b) No" + "\n")) print(" ") if q5 == "a": print ("Right!") elif q5 == "b": print ("Wrong! It is an open source language.") else: print ("Please enter a or b") print(" ") print("And now a small Mad Lib. Be careful with your words ;)" + "\n") adjective = input("Enter an adjective: ") adjective_2 = input("Enter another adjective: ") plural_noun = input("Enter a Plural Noun: ") print(" ") print("Software is " + adjective + " and quite smart") print("But sometimes it's also " + adjective_2) print("I like using it,") print("And I also like " + plural_noun) print(" ") print("So did you get it right?\nI hope you enjoyed it! Bye " + name + "!")