coding-quiz
---
id: coding-quiz
title: Coding Quiz - Output Formatting
description: Write code to dynamically format output based on input values.
tags:
- Coding Quiz
- Python
- Practical
sidebar_position: 9
isPublic: false
---
# Coding Quiz - Output Formatting
The provided `solution` function takes `name` and `message` as parameters.
This function combines the given name and message into a string and returns it.
The output format is `{message}, {name}`. For example, if you pass "CodeBuddy" as the name and "Nice to meet you" as the message to the function, it should return `"Nice to meet you, CodeBuddy"`.
```python title="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.