0 of 6 problems solved • 0%

Conditions and Branching

6 exercisesEasy

Python uses indentation to group lines. It checks branches from top to bottom and executes the first one whose condition is true.

wind = 18 if wind >= 25: level = "high" elif wind >= 10: level = "moderate" else: level = "low"