Greet User

Beginner

Greet User Challenge

In this fun and simple challenge, your task is to write a Python function called greet_user. This function will take a single argument - name - which is a string representing a user's name. The function should return a friendly greeting message that includes the user's name.

Here's the deal:

  • If the given name is "Alice", the function should return the string "Hello, Alice! Welcome to the coding world!".
  • This greeting should be welcoming and make the user feel special.

This challenge helps kids practice string concatenation and using function parameters in Python.

Examples:

print(greet_user("Alice")) # Output: "Hello, Alice! Welcome to the coding world!" print(greet_user("Bob")) # Output: "Hello, Bob! Welcome to the coding world!"

Remember, don't print anything inside the function. Just return the greeting message.

Go ahead and make your special function to greet anyone who comes along!

Geek
Inputs

Arg 1:

"Alice"
Expected Output
"Hello, Alice! Welcome to the coding world!"
Actual Output