cs50/greet.py

7 lines
127 B
Python

from sys import argv
if len(argv) > 1:
for arg in argv[1:]:
print(f"Hello {arg}!")
else:
print("Hello World!")