Challenge: Identifying Positive Values
Task
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
.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 6. ChapterΒ 6
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 1.64
Challenge: Identifying Positive Values
Swipe to show menu
Task
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
.
Solution
Everything was clear?
Thanks for your feedback!
Awesome!
Completion rate improved to 1.64SectionΒ 6. ChapterΒ 6
single