elif chains and the match statement Cursor reaches for — step 8 of 9
Write an if/elif/else chain that takes the variable temp = 72 and
prints exactly one of these labels:
"hot"iftemp >= 85"warm"iftemp >= 70"cool"iftemp >= 55"cold"otherwise
For temp = 72, the expected output is:
warm
⌘↵ runs the editor.read, then continue.
Write an if/elif/else chain that takes the variable temp = 72 and
prints exactly one of these labels:
"hot"iftemp >= 85"warm"iftemp >= 70"cool"iftemp >= 55"cold"otherwise
For temp = 72, the expected output is:
warm
this step needs the editor
on desktop today; in the app (coming soon). save your spot and we'll bring you back here when you're ready.