Skip to content

Decisions · warm-up

Positive, negative or zero

Write sign_of(n) that returns the string "positive", "negative" or "zero".

Run adds print(sign_of(0)) after your code, to try it.

Stuck on the idea rather than the code? The Making decisions lesson walks through it.