Challenge: Write Your First Function
Task
Swipe to start coding
Create a function that introduces a person using their name and age.
- The function
introduce_personmust take two arguments:nameandage. - The function must return a string in the format:
"Hello, my name is <name> and I am <age> years old.".
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 2
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 5.56
Challenge: Write Your First Function
Swipe to show menu
Task
Swipe to start coding
Create a function that introduces a person using their name and age.
- The function
introduce_personmust take two arguments:nameandage. - The function must return a string in the format:
"Hello, my name is <name> and I am <age> years old.".
Solution
Everything was clear?
Thanks for your feedback!
Section 1. Chapter 2
single