Modify `hilo.py`

so it will only keep asking the user to guess if they
haven’t guessed right yet and if they haven’t run out of guesses:

>>>%Run hilo.pyyou have 7 guesses left Pick a number:50Your guess is too low. you have 6 guesses left Pick a number:75Your guess is too low. you have 5 guesses left Pick a number:88Your guess is too low. you have 4 guesses left Pick a number:95Your guess is too high. you have 3 guesses left Pick a number:92Your guess is too high. you have 2 guesses left Pick a number:91You got it right!

>>>%Run hilo.pyyou have 7 guesses left Pick a number:1Your guess is too low. you have 6 guesses left Pick a number:2Your guess is too low. you have 5 guesses left Pick a number:3Your guess is too low. you have 4 guesses left Pick a number:4Your guess is too low. you have 3 guesses left Pick a number:5Your guess is too low. you have 2 guesses left Pick a number:6Your guess is too low. you have 1 guesses left Pick a number:7Wrong! The number was 10

```
import random
guesses_left = 7
computer_number = random.randint(1, 100)
print("you have", guesses_left, "guesses left")
guess = int(input("Pick a number: "))
guesses_left -= 1
while guess != computer_number and guesses_left > 0:
if guess < computer_number:
print("Your guess is too low.")
else:
print("Your guess is too high.")
print("you have", guesses_left, "guesses left")
guess = int(input("Pick a number: "))
guesses_left -= 1
if guess == computer_number:
print("You got it right!")
else:
print("Wrong! The number was", computer_number)
```

previous: and, or, not