17 lines
402 B
Python
17 lines
402 B
Python
#!/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>")
|