Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Building Functions | Section
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python Functions

bookChallenge: 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?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

close

bookChallenge: 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

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

SectionΒ 1. ChapterΒ 3
single

single

some-alt