Skip to content

Commit 1cf5d40

Browse files
authored
Add Python greeting function
Add a reusable function that returns a personalized greeting
1 parent 6e03a48 commit 1cf5d40

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

‎greeting.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
def greet_user(name):
2+
"""Return a greeting for the given user."""
3+
return f"Hello, {name}! Welcome to our project."
4+
5+
6+
if __name__ == "__main__":
7+
print(greet_user("Student"))

0 commit comments

Comments
 (0)