A quiz (using python) on Star Wars!
You think you know more than me? Lets find out!
from tokenize import Ignore
print("Welcome to my quiz on Star Wars! Test your knowledge to see if you are a true Star Wars nerd! So everything runs smoothly, please answer in all lowercase. Thanks and have fun!")
questions = [
"Level 0: Who is Luke Skywalker's father?", "Level 1: What trilogy is the Death Star primarily in?", "Level 2: What is Finn's stormtrooper code name?", "Level 3: Where did Anakin and Obiwan duel Darth Maul?", "Level 4: What is Anakin's midi-chlorian count (aproximately)?", "Level 5: Of what species is Yoda?"]
answers = [
"anakin skywalker", "original trilogy", "fn-2187", "naboo", "27000", "unknown"]
MidichlorianValues = [ 250, 750, 2000, 4000, 8000, 12000]
#Variables
level = 0
Midichlorian = 0
for question in questions:
print("For ", MidichlorianValues[level], " Midi-Chlorian: " + question)
guess = str(input())
if(guess == answers[level]):
Midichlorian+=MidichlorianValues[level]
print("You got it! You answered " + guess +" for "+ str(MidichlorianValues[level]) + " Midi-Chlorian, Your Midi-Chlorian total is " +str(Midichlorian) + " Midi-Chlorian ")
else:
print("Wrong! I find your lack of faith disturbing. You answered " + guess +" for "+ str(MidichlorianValues[level]) + " Midi-Chlorian, The correct response was " + answers[level]+ " You currently have " + str(Midichlorian) + " Midi-Chlorian")
level+=1
if(level>5):
if(Midichlorian>17000):
print("The Empire wants YOU to join! You recieved a total of "+str(Midichlorian) + " Midi-Chlorian out of 27000 possible Midi-Chlorian")
else:
print("You've been Jedi mind-tricked! You recieved a total of "+str(Midichlorian) + " Midi-chlorian out of 27000 possible Midi-Chlorian")
else:
Ignore
!pwd
from IPython.display import Image
Image(url="images/ineedyoustarwars.jpg", width=183, height=275)