Answer:
Higher...
Step-by-step explanation:
5.3.8 isn't really a legal number... if you meant 5.38 then it would be higher than 2. If you really meant 5.3.8 then I don't know.
Or is this code?
Say you have this: (sorry there's no indentation)
my_float = round(3.3312, 2)
while True:
guess = float(input("Guess my number: "))
if guess > round(my_float, 2):
print ("Too high!")
elif guess < round(my_float, 2):
print ("Too low!")
elif round(guess,2) == round(my_float, 2):
print("Correct!")
break
print("Great job guessing my number!")
You should be able to use the round function just like you do in the if statement. This can be done on a separate line between taking input and the if or it can be done on the same like.
guess = round(guess, 2)
Or:
guess = round(float(input(“Guess my number: “)), 2)
Hope this helped! Have a nice day!