from __future__ import print_function import os import sys argc = int(sys.argv[1]) if sys.argv[1:] else 23694 command = "valgrind ./ex10 " + " ".join(map(str, range(argc))) print("command = {}".format(command)) os.system(command)