import random
import time

def penalty_shootout():
    print("Welcome to the Football Penalty Shootout Game!")

    goals = 0
    misses = 0
    total_shots = 5

    for _ in range(total_shots):
        print("\nYou are the goalkeeper!")
        print("Try to save the penalty kick!")
        keeper_choice = input("Dive left, center, or right? ").lower()
        kick_choice = random.choice(["left", "center", "right"])
        
        if keeper_choice == kick_choice:
            print("You saved the penalty kick!")
        else:
            print(f"Opponent scored a goal {kick_choice.upper()}!")
            misses += 1

        print(f"Score: {goals} goals, {misses} misses")
    
    print("\nNow you are the penalty kicker!")
    for _ in range(total_shots):
        print("\nTry to score a goal!")
        
        kick_choice = input("Kick left, center, or right? ").lower()
        keeper_choice = random.choice(["left", "center", "right"])
        
        if kick_choice == keeper_choice:
            print("Goalkeeper saved your shot!")
            misses += 1
        else:
            print("You scored a goal!")
            goals += 1

        print(f"Score: {goals} goals, {misses} misses")

    print("\nGame Over!")
    print(f"Final Score: {goals} goals, {misses} misses")

if __name__ == "__main__":
    penalty_shootout()

Welcome to the Football Penalty Shootout Game!

You are the goalkeeper!
Try to save the penalty kick!
Opponent scored a goal RIGHT!
Score: 0 goals, 1 misses

You are the goalkeeper!
Try to save the penalty kick!
Opponent scored a goal RIGHT!
Score: 0 goals, 2 misses

You are the goalkeeper!
Try to save the penalty kick!
Opponent scored a goal LEFT!
Score: 0 goals, 3 misses

You are the goalkeeper!
Try to save the penalty kick!
Opponent scored a goal LEFT!
Score: 0 goals, 4 misses

You are the goalkeeper!
Try to save the penalty kick!
Opponent scored a goal RIGHT!
Score: 0 goals, 5 misses

Now you are the penalty kicker!

Try to score a goal!
You scored a goal!
Score: 1 goals, 5 misses

Try to score a goal!
You scored a goal!
Score: 2 goals, 5 misses

Try to score a goal!
You scored a goal!
Score: 3 goals, 5 misses

Try to score a goal!
You scored a goal!
Score: 4 goals, 5 misses

Try to score a goal!
You scored a goal!
Score: 5 goals, 5 misses

Game Over!
Final Score: 5 goals, 5 misses