Challenge: Identifying Positive Values
Compito
Swipe to start coding
Create a function called is_positive
that takes in a single argument, n
. It should return:
'positive'
ifn
is greater than0
.'negative'
ifn
is less than0
.'zero'
ifn
is equal to0
.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 6. Capitolo 6