Task
📝 Task: Write a greeting() function
📋 What to do:
1. Create a function greeting(name) that takes a name
2. Inside, return the string "Hi, {name}!"
3. Use an f-string: f"Hi, {name}!"
4. Call greeting("Anna") via print() — should output: Hi, Anna!
💡 Template:
def greeting(name):
return f"Hi, {name}!"
print(greeting("Anna"))
💡 What's an f-string:
f"..." lets you insert variables into text:
age = 25
print(f"I am {age} years old") # I am 25 years old
⚠️ The word "Hi" is Russian — keep it as test data.