Your First Function

Lab Python Beginner 10 points

Complete greet(name) so it returns Hello, NAME!. The starter code already reads input and prints the result.

Input

One name.

Output

The greeting.

Example

Input

Ada

Output

Hello, Ada!
Sample input available Sample output available
Editor
Python

Hints

Use return, not print, inside the function.

A function without return gives back None.

Solution explanation

return sends a value back to the caller; the caller decides what to do with it.

Show solution
def greet(name):
    return f"Hello, {name}!"


print(greet(input()))
Output
Answer
HOME LEARN COMMUNITY DASHBOARD