Как повторить файл Python
while True:
cmd = raw_input('Do you want to quit? Enter \'q\'!')
if cmd == 'q':
break
while True:
cmd = raw_input('Do you want to quit? Enter \'q\'!')
if cmd == 'q':
break