Let the user call a coin flip, keep score across rounds, and ask whether they want to play again.
This is the same shape as Rock, Paper, Scissors from Activity 1.15 — a game inside a loop with a running score. Try building it without looking back at that activity.
Welcome to Heads or Tails!
Guess the outcome (heads/tails): heads [Enter]It's heads! You win!Wins: 1 | Losses: 0
Do you want to play again? (yes/no): yes [Enter]
Guess the outcome (heads/tails): tails [Enter]It's heads! You lose.Wins: 1 | Losses: 1
Do you want to play again? (yes/no): no [Enter]
Thanks for playing! Final score: Wins: 1 | Losses: 1