Challenge: Identifying Positive Values
Tehtävä
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
.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 6. Luku 6
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme
Suggested prompts:
Tiivistä tämä luku
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 1.67
Challenge: Identifying Positive Values
Pyyhkäise näyttääksesi valikon
Tehtävä
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
.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Awesome!
Completion rate improved to 1.67Osio 6. Luku 6
single