StepBytesPrototype

Exercise

Say hello

Write a function called greet that takes a name and returns a greeting.

greet("Sam") should return "Hello, Sam!"

Need a hint?

Use return (not print), and an f-string: return f"Hello, {name}!"

Loading Python…

Ctrl+Enter runs your code. Tab indents - to leave the editor with the keyboard, press Esc, then Tab.

Output

Press Run to see what your code prints.