The program took too long to run. Check for infinite loops. My code provides the expected results and exits with code=0 in 0.245 seconds. Is there a better way?
n = [3, 5, 7] for i in range(0, len(n)): print n[i] def print_list(x): while i<=n: print n