Challenge: Identifying Positive Values
Opgave
Swipe to start coding
Your task is to 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
.
Løsning
Var alt klart?
Tak for dine kommentarer!