BuildlyBuildly
DashboardExercisesProfileHelp
Back to all

Practice: Conditionals

Drills tagged with this skill, unpassed first. Pass them all to mark the skill ready for scenarios.

Module 1: Python Programming

0/3 done
Exercises (0/3)
  • 1
    Score to Letter Grade
    Write grade_letter(score) that returns a letter grade: A for ≥90, B for ≥80, C for ≥70, D for ≥60, otherwise F.
    5 min· 10 XP
  • 2
    Leap Year
    Write is_leap_year(year) that returns True if year is a leap year, else False. Rule: divisible by 4 AND (not divisible by 100 OR divisible by 400).
    5 min· 10 XP
  • 3
    BMI Category
    Write bmi_category(bmi) that returns: "Underweight" for BMI < 18.5, "Normal" for < 25, "Overweight" for < 30, "Obese" for ≥ 30.
    5 min· 10 XP