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'ifnis greater than0.'negative'ifnis less than0.'zero'ifnis 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'ifnis greater than0.'negative'ifnis less than0.'zero'ifnis equal to0.
Løsning
Alt var klart?
Takk for tilbakemeldingene dine!
Seksjon 6. Kapittel 6
single