Editor

Say Hello

#2 · 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.

Example

say_hello("Alice")   # Returns "Hello, Alice!"
say_hello("Bob")     # Returns "Hello, Bob!"
say_hello("World")   # Returns "Hello, World!"

Requirements

  • Return the greeting in the format: "Hello, {name}!"
  • Include the comma after "Hello" and exclamation mark at the end

Fastest solvers

Leaderboard

First solves only, ranked by stars and then time.