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
nameparameter is a string. -
The
messageparameter is a string.
Example Input and Output
- Input:
name = "Alex",message = "Nice to meet you" - Output:
"Nice to meet you, Alex"
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help