Course Content
Introduction to Python
3. Conditional Statements
Introduction to Python
Challenge
Task
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 to zero.
Everything was clear?
Section 6. Chapter 6