Challenge: Identifying Positive Values
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 6. Kapitel 6
single
Spørg AI
Spørg AI
Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat
Awesome!
Completion rate improved to 1.67
Challenge: Identifying Positive Values
Stryg for at vise menuen
Opgave
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.
Løsning
Var alt klart?
Tak for dine kommentarer!
Sektion 6. Kapitel 6
single