import os dans_things = ['50.py','100.py','200.py','500.py','1000.py'] for thing in dans_things: command = 'athena.py '+thing os.system(command)