Challenge: Identifying Positive Values
Compito
Swipe to start coding
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 to0
.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 6. Capitolo 6
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Awesome!
Completion rate improved to 1.64
Challenge: Identifying Positive Values
Scorri per mostrare il menu
Compito
Swipe to start coding
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 to0
.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Awesome!
Completion rate improved to 1.64Sezione 6. Capitolo 6
single