When I run a script with PDB, I find that I have to put for loops into one line to run correctly. When I try to nest for loops as shown below, I get a SyntaxError. How can I run nested for loops??
(pdb) for input in range(20): print input*2
0
2
4
...
36
38
(pdb) for input in range(20): for output in range(10): print input*2
*** SyntaxError: invalid syntax(<stdin>, line 1)