In this exercise we will program a simple game using if statements and while loops
Make the computer pick a number between 1 and 100. You can do
this by using the function random.randint (0,100). This will be the number the computer will choose so that you can guess.
Make the machine ask for an input with your guess of the number. This can be hard without a hint, so make sure the computer gives you clues about the proximity to the point!
You can use simple substraction to your variable for this!
How many opportunities will the computer let you guess? Create a counter so that after 10 trials the game ends and the computer reveals its secret number.
Need a bigger challenge!? Add some color using Turtle!
You can use dots of different sizes to hit the center of the circle! Will be handy to know the dot function and the pen size: myturtle.color(), myturtle.pensize(), myturtle.dot(). Here's mine!