Your First Function
Completed
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!
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()))