Been learning how to do actual coding (You know, like striped coding), first started doing JavaScript, but then I shifted to python. Here's probably the most complex coding I've done so far. Maybe someday I'll start making actual games like how RilzLaFFy shifted from doing crappy scratch projects, to making real games using actual code. If you would want to use that as a comparison.
Here is the whole lay out code
#this is a quiz about Vitas Carnis
answer1 = "a" or "A"
answer2 = "d" or "D"
answer3 = "c" or "C"
print("Multiple-Choice Quiz Game")
print()
print("THEME: VITAS CARNIS")
print()
question_1 = "1. When did the Vitas Carnis first show up on earth? \n a)Around the 1930s \n b)The mid 1950s \n c)The Late 1980s \n d)The early 2000s"
question_2 = "2. What are Vitas Carnis? \n a)A rebel group from russia \n b)A species of alien life forms on UFOs \n c)A type of Insect \n d)A species of Meaty Skinless Creatures"
question_3 = "3. How many monoliths are there in Vitas Carnis? \n a)10 \n b)25 \n c)7 \n d)There is no real count of how many there are"
score = 0
#ask the first question
user_answer = input(question_1 + "\n" + "Answer: ")
if user_answer == answer1:
print("correct")
score = score + 1
else:
print("incorrect")
print()
#ask the second question
user_answer = input(question_2 + "\n" + "Answer: ")
if user_answer == answer2:
print("correct")
score = score + 1
else:
print("incorrect")
print()
#ask the third question
user_answer = input(question_3 + "\n" + "Answer: ")
if user_answer == answer3:
print("correct")
score = score + 1
else:
print("incorrect")
print()
#print the final score
print("Final Score:")
print(score)
if score == 3:
print("You got all the answers correct, good job!")
if score == 2:
print("You got 2 out of 3 of the questions correct, you tried.")
if score == 0:
print("You got all the questions incorrect.... tsk tsk tsk....")
if score == 1:
print("You got 1 out of 3 of the question correct, you tried.")
9 comments