def sumit(*args): sum = args[0] for x in args[1:]: sum += x return sum if __name__ == '__main__': print sumit(1, 2, 3, 4, 5)