import random

# Quiz questions with multiple-choice answers
quiz_questions = {
    "What animal is known as the king of the jungle?": ["A. Lion", "B. Insects", "C. Giraffe", "D. Turtle"],
    "Where is the tallest skyscraper in the world?": ["A. Dubai", "B. Istanbul", "C. Makkah", "D. Baghdad"],
    "What is the number of planets in the solar system?": ["A. 8", "B. 9", "C. 6", "D. 7"],
    "How many letters are there in the English language?": ["A. 26", "B. 25", "C. 28", "D. 30"],
    "What is the result of the following calculation:(5+3*10-4)?": ["A. 31", "B. 76", "C. 18", "D. 35"]
}

def play_quiz():
    score = 0
    total_questions = len(quiz_questions)
    
    # Shuffle the questions
    questions = list(quiz_questions.keys())
    random.shuffle(questions)
    
    # Iterate through questions
    for question in questions:
        print(question)
        choices = quiz_questions[question]
        for choice in choices:
            print(choice)
        user_answer = input("Enter your answer (A/B/C/D): ").upper()
        
        # Check if the answer is correct
        correct_answer = choices[0][0]
        if user_answer == correct_answer:
            print("Correct!")
            score += 1
        else:
            print("Incorrect! The correct answer is", correct_answer)
    
    print("Quiz completed! Your score is", score, "out of", total_questions)

def main():
    print("Welcome to the Quiz Game!")
    print("Answer these question:")
    play_quiz()

if __name__ == "__main__":
    main()
