Run
code = ''' for x in range(5): print(f'{x} - Hello World') ''' exec(code)
Output