Created
September 17, 2014 21:44
-
-
Save LewkyB/45c4d7bebb733b001818 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x = 0 | |
print "Which is better? Coke Zero or Water?" | |
answer1 = raw_input("Answer: ").lower() | |
if answer1 == "coke zero": | |
print "Correct!" | |
x += 1 | |
else: | |
print "Wrong!" | |
print "Does Luke like climbing?" | |
answer2 = raw_input("Answer: ").lower() | |
if answer2 == "yes": | |
print "Correct!" | |
x += 1 | |
else: | |
print "Wrong!" | |
x += 0 | |
print "Name a colour in the RGB colour set." | |
answer3 = raw_input("Answer: ").lower() | |
rgb = ["red","green","blue"] | |
if answer3 in rgb: | |
print "Correct!" | |
x += 1 | |
else: | |
print "Wrong!" | |
x += 0 | |
print "What is 90 + 90?" | |
answer4 = raw_input("Answer: ") | |
if answer4 == "180": | |
print "Correct!" | |
x += 1 | |
else: | |
print "Wrong!" | |
x += 0 | |
print "What is Russ Brown's favourite sport?" | |
answer5 = raw_input("Answer: ").lower() | |
if answer5 == "racquetball": | |
print "Correct!" | |
x += 1 | |
else: | |
print "Wrong!" | |
x += 0 | |
print "Congratulations, you got",x,"answers right." | |
print "That is a score of",x * 20,"%" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment