Challenge: Identifying Positive Values
Task
Swipe to start coding
Create a function called is_positive that takes in a single argument, n. It should return:
'positive'ifnis greater than0.'negative'ifnis less than0.'zero'ifnis 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.67
Challenge: Identifying Positive Values
Swipe to show menu
Task
Swipe to start coding
Create a function called is_positive that takes in a single argument, n. It should return:
'positive'ifnis greater than0.'negative'ifnis less than0.'zero'ifnis equal to0.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 6. ChapterΒ 6
single