Strings · Beginner · 25 XP · about 2 min
Write a function called say_hello(name) that takes a person's name and returns a greeting string.
say_hello("Alice") # Returns "Hello, Alice!" say_hello("Bob") # Returns "Hello, Bob!" say_hello("World") # Returns "Hello, World!"
"Hello, {name}!"Ready?
Accept the challenge to start writing. A small timer counts the time this page is in view.
Output appears here.