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"