cs50/src6/2/greet0.py

9 lines
138 B
Python

# Prints a command-line argument
from sys import argv
if len(argv) == 2:
print(f"hello, {argv[1]}")
else:
print("hello, world")