Add main.py
This commit is contained in:
@@ -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>")
|
||||
Reference in New Issue
Block a user