93.2k views
4 votes
write an if statement that assigns true to the variable fever if the variable temperature is greater than 98.6.

1 Answer

3 votes

Program:

fever = False

temperature = input("Input your temperature: ")

if temperature > 98.6:

fever = True

else:

fever = False

print(fever)

User Rion Williams
by
8.5k points