I am attempting to eval the following tab-indented string:
'''for index in range(10):
os.system("echo " + str(index) + "")
'''
I get, “There was an error: invalid syntax , line 1”
What is it complaining about? Do I need to indent to match the eval() statement, or write it to a string file or temp file and execute that, or something else?
Thanks,
evalevaluates stuff like5+3execexecutes stuff likefor ...