![]() Notice that it works, however when the computer guessed 74, it then guessed a higher number to 89. The computer guessed 78 and it was correct! Print ("The computer guessed", guess, "and it was correct!")Įnter a number for the computer to guess: 78 Print ("The computer takes a guess.", guess) Print ("Number must be lower than or equal to 100!") Number = int(input("\n\nEnter a number for the computer to guess: ")) "\nAfter the computer will try to guess your number!") Print ("In this program you will enter a number between 1 - 100." So far I have come up with this and it works, but it could be better and I'll explain. After completion, the "hard challenge" was to create a guess the number game that the user creates the number and the computer (AI) guesses. ![]() I came across a challenge that asked for me to create a "Guess the number" game. I am very new to programming so I decided to start with Python about 4 or 5 days ago. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |