![]() ![]() In Sheet 2, there was a section called Over and over and You it’s picked a number, it asks you for a guess and tells you how youĭid. ![]() You’ve already done something very like this for Sheet 2.Īdd some lines to your program so that after picking a number and telling Number and saying whether their number is too high, too low, or just right. ![]() To say from random import randint at the start!Īnother thing that you should already know how to do is asking the player for a Write a program that chooses a random number between, puts it inĪ variable, and displays a message saying that it’s done so. The first thing on that list, you already know how to do from If they want another game, start over again. Keep track of the number of guesses the player made.įinally, report on the player’s performance and offer the chance of another ![]() (Do this until the player guesses the answer.) Report on whether it’s too high, too low or just right So, the program needs to do the following things.Ĭhoose a number somehow, and tell the player that it’s done so. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
May 2023
Categories |