Hi everyone, I can't solve the loop problems in Python.
- Write a program—a "surprise pie" simulator—that, when launched, displays one of five different "surprises", chosen randomly.
- Write a program that "flips" a virtual coin 100 times and reports how many times heads came up, and how many times tails.
- Modify the "Guess the Number" program so that the player has a limited number of attempts. If the player does not guess the correct number (and loses), the program should output the harshest possible message.
- And here is a more complex task. Write a pseudocode algorithm for a game in which a computer guesses a number between 1 and 100, and the person thinks of a number. Before starting to write the code, think about what the optimal guessing strategy should be. If your pseudocode algorithm is successful, try implementing the game in Python.