81.2k views
4 votes
You used this code to give the user hints.

else:
if guess print("Guess higher.")

else:
print("Guess lower.")

Complete the code below, which is an alternative way to give the user the same hints.

if guess = correct:
# Tell the user the guess was correct.
print("You were correct!")
keepGoing = False

_________
print("Guess higher.")

_________
print("Guess lower.")

•Else
•Elif guess > correct
•Elif guess < correct

You used this code to give the user hints. else: if guess print("Guess higher-example-1
User Pzeszko
by
4.4k points

1 Answer

5 votes

Answer:

Elif guess < correct

Else

Step-by-step explanation:

So, you need to insert right condition that compatible with given code, so firstly you need to print that guess was higher and then if it is not correct and it is not higher print that it was actually lower.

User Bria
by
4.7k points