what error do you get? Post full traceback in error tags. Note that there is missing closing parenthesis on line 13. Also note that
control
within the main function (i.e. line 13)is different variable from the one on line 2 and line 16, i.e. after you fix the problem, you will be in infinite loop
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs