How to I write these steps in Python?

Update: The game ends when the user wins by having 4 bulls or enters X to Forfeit when asked to enter a guess
Only 1 game is played with as many turns as needed to either "Win" or "Forfeit"
After the game has been played, print the game statistics of number of turns and/or forfeit.
1 answer 1