Problem 19 of 50

Easy

lightbulb What to do

You need to check a person's body temperature and tell which category it falls into: high fever, fever, or normal. Based on the temperature, you will return a number: 1 for high fever, 2 for fever, and 3 for normal.

Key Concepts
if-statements comparison operators input and output basic math
Examples

Input: 40.0

Output: 1

Input: 37.7

Output: 2

code Python Editor
Loading Python...
Test Results
tips_and_updates Tips for Beginners
  • Focus on understanding the logic, not memorizing syntax
  • Use print statements to debug your code
  • Don't worry about input parsing - the function handles that for you
  • If stuck, try writing out your solution on paper first