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