first_input = input("This is a Halo quiz game. If you type anything in this game make shure it is in all CAPS. Please type CONTINUE to go on with the game.\n[tip, use CAPS LOCK]\n\n")
print("Your current score is,",score)
if first_input == continue_game:
input("Welcome to the game! first I would like too start of with a true or false question. [push ENTER key] ")
else:
raise ValueError ("Sorry, that is incorect. Please try again. And remember to have all caps.")
question one
answer = input("\nIs Spartan 117's team named: Field Team Osiris\nTRUE or FALSE: ")
if answer == it_false:
print("\nCORRECT!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question two
second_input = input("\nNow to question 2. [push ENTER key] ")
answer_two = input("\nWhat is Spartan 117's real name? ")
if answer_two == spartan_name:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question three
third_input = input("\nNow to question 3. [push ENTER key] ")
answer_three = input("\nWhat is the name of the first ship cortana piloted? ")
if answer_three == ship_name:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question four
fourth_input = input("\nNow to question 4. [push ENTER key] ")
answer_four = input("\nList the name of the UNSC tank. ")
if answer_four == tank:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question five
fith_input = input("\nNow to question 5. [push ENTER key] ")
answer_five = input("\nIs the Arbiter's rebelion name: The Sword Of Sanhelios.\n TRUE or FALSE: ")
if answer_five == a_team:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question six
sixth_input = input("\nNow to question 6. THE ULLTIMATE QUESTION. [push ENTER key] ")
answer_six = input("\nWhat in the FULL NAME of the assault rifle. ")
if answer_six == gun_code:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
if 6
if score == 6:
print("\nWAAHOOO!!! You got them all! Way to go Spartan!")
if 5
if score == 5:
print("\nExcellent. You preformed admaraly.")
if 4
if score == 4:
print("\nWell done. Go and hit the library on your way out and prefect all your knowledge")
if 3
if score == 3:
print("\nOnly the best don't back down. Continue your reading Spartan.")
if 2
if score == 2:
print("\nDon't give up and try it again. If you get stuck, DO NOT FORGET to ask others for help. Asking others for help not a sign of weakness, but a sign that you care about what you are doing")
Halo Quiz Game
`
score = 0
spartan_name = ("JOHN")
it_false = ("FALSE")
continue_game = ("CONTINUE")
ship_name = ("PILLAR OF AUTMUN")
tank = ("SCORPION")
a_team = ("TRUE")
gun_code = ("MA5D ASSAULT RIFLE")
intro
first_input = input("This is a Halo quiz game. If you type anything in this game make shure it is in all CAPS. Please type CONTINUE to go on with the game.\n[tip, use CAPS LOCK]\n\n")
print("Your current score is,",score)
if first_input == continue_game:
input("Welcome to the game! first I would like too start of with a true or false question. [push ENTER key] ")
else:
raise ValueError ("Sorry, that is incorect. Please try again. And remember to have all caps.")
question one
answer = input("\nIs Spartan 117's team named: Field Team Osiris\nTRUE or FALSE: ")
if answer == it_false:
print("\nCORRECT!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question two
second_input = input("\nNow to question 2. [push ENTER key] ")
answer_two = input("\nWhat is Spartan 117's real name? ")
if answer_two == spartan_name:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question three
third_input = input("\nNow to question 3. [push ENTER key] ")
answer_three = input("\nWhat is the name of the first ship cortana piloted? ")
if answer_three == ship_name:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question four
fourth_input = input("\nNow to question 4. [push ENTER key] ")
answer_four = input("\nList the name of the UNSC tank. ")
if answer_four == tank:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question five
fith_input = input("\nNow to question 5. [push ENTER key] ")
answer_five = input("\nIs the Arbiter's rebelion name: The Sword Of Sanhelios.\n TRUE or FALSE: ")
if answer_five == a_team:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
question six
sixth_input = input("\nNow to question 6. THE ULLTIMATE QUESTION. [push ENTER key] ")
answer_six = input("\nWhat in the FULL NAME of the assault rifle. ")
if answer_six == gun_code:
print("\nCORRECT!!!")
score = score+1
print("Your score is now,",score)
else:
print("Sorry, that is incorect.")
score = score+0
print("Your score is now,",score)
if 6
if score == 6:
print("\nWAAHOOO!!! You got them all! Way to go Spartan!")
if 5
if score == 5:
print("\nExcellent. You preformed admaraly.")
if 4
if score == 4:
print("\nWell done. Go and hit the library on your way out and prefect all your knowledge")
if 3
if score == 3:
print("\nOnly the best don't back down. Continue your reading Spartan.")
if 2
if score == 2:
print("\nDon't give up and try it again. If you get stuck, DO NOT FORGET to ask others for help. Asking others for help not a sign of weakness, but a sign that you care about what you are doing")
if <=1
if score <=1:
print("\nBetter luck next time.")
Add code up me, not under!!!
print("You got",score,"out of 6")
Eddit me after every new quiz!!!
`
Hey Caleb! Don't forget to post the repl - you only posted the code. Let me know if you need any help.