print("Hello there! Welcome to another quiz.") wins = 0 print("Please answer the following questions:") print("Which brackets are used for lists in python?") print("1: []") print("2: ()") print("3: {}") print("4: none.") answer = input("Type your answer here:") if answer == "1": print("Hooray! Looks like you did read that entire book!") wins = wins+1 else: print("Nooooope.") print print("What do you use if your data is never to change?") print("1: lists") print("2: tuples") print("3: dictionaries") print("4: sets") answer = input("Type your answer here:") if answer == "2": print("You're a star!") wins = wins+1 else: print("Hm. Sure you did your homework?") print print("Which fruits did NOT appear in the Head First Python book?") print("1: apples") print("2: bananas") print("3: pineapples") print("4: pears") answer = input("Type your answer here:") if answer == "3": print("Well done!") wins = wins+1 else: print("Nooooope. Really not.") print print("Okay, one last question: are list mutable?") answer = input("Type 1 for 'yes, of course' or 2 for 'hm, don't think so':") if answer == "1": print("You've got it!") wins = wins+1 else: print("Not even close.") print('-------------------------------------') print print('This is your total score:') print(wins, '/4') if wins <= 2: print('Well... Maybe you would like to try again!') else: print('You are the master of python!')