Skip to main content
Practice

Coding Quiz - Output Formatting

The provided solution function takes name and message as parameters.

The function should return a single string combining the given name and message.

The output format is {message}, {name}. For example, if you pass "CodeFriends" as the name and "Nice to meet you" as the message to the function, it should return "Nice to meet you, CodeFriends".

Parameter Format
def solution(name, message):
return # Write your code here

Constraints

  • The name parameter is a string.

  • The message parameter is a string.


Example Input and Output

  • Input: name = "Alex", message = "Nice to meet you"
  • Output: "Nice to meet you, Alex"

Want to learn more?

Join CodeFriends Plus membership or enroll in a course to start your journey.