Print Your Name
Beginner
Print Your Name
Hello, young coder! Today, we have an exciting challenge for you. Have you ever wondered what it would be like to have your name spoken aloud by your computer? Well, in the coding world, our computers can "speak" by returning strings!
In this fun challenge, you'll write a function that returns a simple string containing someone's name. Your task is to create a function called print_your_name that takes one argument, name, which is of type str. The function should return the string "Hello, my name is " followed by the given name.
Examples:
print_your_name("Alice") # Output: 'Hello, my name is Alice' print_your_name("Bob") # Output: 'Hello, my name is Bob'
Be sure to focus on returning the correct format, including punctuation and spaces. Have fun discovering the joy of making your program "say" your name!
Inputs
Arg 1:
"Alice"Expected Output
"Hello, my name is Alice"Actual Output