#8 · Functions · Beginner · 35 XP · about 3 min
Write a function called greet_person(name, greeting="Hello") that creates a greeting message with an optional greeting word.
greet_person("Alice") # Returns "Hello, Alice!" greet_person("Bob", "Hi") # Returns "Hi, Bob!" greet_person("Eve", "Welcome") # Returns "Welcome, Eve!"
First solves only, ranked by stars and then time.