Add main.py

This commit is contained in:
2026-05-27 10:58:22 +00:00
parent f09ecd6e47
commit ba4ce57598
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python3
"""
Solution for task 6997111cd6d3a5544a3deffd.
This file contains a minimal example implementation.
"""
def greet(name: str) -> str:
"""Return a greeting message for the given name."""
return f"Hello, {name}!"
if __name__ == "__main__":
import sys
if len(sys.argv) > 1:
print(greet(sys.argv[1]))
else:
print("Usage: python main.py <name>")