Challenge: Writing First Function
Taak
Swipe to start coding
You are writing a simple function to generate a personalized greeting.
- Define a function called
greetingthat takes a parameter calledname. - The function should return a greeting in the format:
"Hello, name!". - Use the
returnstatement to ensure the function outputs the correct result.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 6. Hoofdstuk 4
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Suggested prompts:
Vat dit hoofdstuk samen
Explain code
Explain why doesn't solve task
Awesome!
Completion rate improved to 1.67
Challenge: Writing First Function
Veeg om het menu te tonen
Taak
Swipe to start coding
You are writing a simple function to generate a personalized greeting.
- Define a function called
greetingthat takes a parameter calledname. - The function should return a greeting in the format:
"Hello, name!". - Use the
returnstatement to ensure the function outputs the correct result.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 6. Hoofdstuk 4
single