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'ifnis greater than0.'negative'ifnis less than0.'zero'ifnis 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
Suggested prompts:
Riassuma questo capitolo
Explain code
Explain why doesn't solve task
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'ifnis greater than0.'negative'ifnis less than0.'zero'ifnis equal to0.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 6. Capitolo 6
single