Bjorn Pettersen wrote: > > >>> exec """for x in range(5): > > print x""" ^^^^ > You need to indent the line "print x". It is intended. See the whitespace.