import random

print("------------------------")
print(" GENERAL KNOWLEDGE QUIZ")
print("------------------------")

questions = ("How many vertebrae are there in a giraffe's neck?: ",
                       "Where are the Comoros Islands located?: ",
                       "WWhat are the largest countries in terms of area in the continent of Africa?: ",
                       "How many bones are in the human body?: ",
                       "Which planet in the solar system is the hottest?: ")

options = (("A. Seven vertebrae", "B.  Eight vertebrae", "C. Nine vertebrae)."),
                   ("A. Atlantic Ocean", "B. Pacific Ocean", "C. Indian Oceane"),
                   ("A. Sudan", "B. Mauritania", "C. Egypt"),
                   ("A. 206", "B. 207", "C. 206"),
                   ("A. Mercury", "B. Venus", "C. Earth"))

answers = ("A", "C", "A", "A", "B")
guesses = []
score = 0
question_indices = random.sample(range(len(questions)),2)

for index in question_indices:
    question_num = index 
    print("----------------------")
    print(questions[question_num])
    for option in options[question_num]:
        print(option)

    guess = input("Enter (A, B, C): ").upper()
    guesses.append(guess)
    if guess == answers[question_num]:
        score += 1
        print("CORRECT!")
    else:
        print("INCORRECT!")
        print(f"{answers[question_num]} is the correct answer")
    question_num += 1


print("answers: ", end="")
for answer in answers:
    print(answer, end=" ")
print()

print("guesses: ", end="")
for guess in guesses:
    print(guess, end=" ")
print()

score = int(score / len(questions) * 100)
print(f"Your score is: {score}%")