Thermometer

ABC 397

Problem 19 of 50

Easy

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

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

Python Editor

Loading Python...