Challenge: Identifying Positive Values
Oppgave
Swipe to start coding
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
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 6. Kapittel 6
single
Spør AI
Spør AI
Spør om hva du vil, eller prøv ett av de foreslåtte spørsmålene for å starte chatten vår
Awesome!
Completion rate improved to 1.67
Challenge: Identifying Positive Values
Sveip for å vise menyen
Oppgave
Swipe to start coding
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
Alt var klart?
Takk for tilbakemeldingene dine!
Awesome!
Completion rate improved to 1.67Seksjon 6. Kapittel 6
single