Challenge: Building Functions
Task
Swipe to start coding
Write a function that prints your name in the console.
- Define a function named
print_name. - Inside the function, use
print()to output a string with your name in the format:My name is {your name}, where{your name}is replaced with your actual name.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 6.67
Challenge: Building Functions
Swipe to show menu
Task
Swipe to start coding
Write a function that prints your name in the console.
- Define a function named
print_name. - Inside the function, use
print()to output a string with your name in the format:My name is {your name}, where{your name}is replaced with your actual name.
Solution
Everything was clear?
Thanks for your feedback!
SectionΒ 1. ChapterΒ 3
single