exit prints to STDERR
examples/sys/exit.py
import sys if len(sys.argv) != 2: exit(f"Usage: {sys.argv[0]} NUMBER") print(f"you sent in {sys.argv[1]}")
import sys if len(sys.argv) != 2: exit(f"Usage: {sys.argv[0]} NUMBER") print(f"you sent in {sys.argv[1]}")