Challenge: Writing First Function
Compito
Swipe to start coding
You are writing a simple function to generate a personalized greeting.
- Define a function called
greeting
that takes a parameter calledname
. - The function should return a greeting in the format:
"Hello, name!"
. - Use the
return
statement to ensure the function outputs the correct result.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 6. Capitolo 4
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.67
Challenge: Writing First Function
Scorri per mostrare il menu
Compito
Swipe to start coding
You are writing a simple function to generate a personalized greeting.
- Define a function called
greeting
that takes a parameter calledname
. - The function should return a greeting in the format:
"Hello, name!"
. - Use the
return
statement to ensure the function outputs the correct result.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Awesome!
Completion rate improved to 1.67Sezione 6. Capitolo 4
single