Dec-06-2021, 06:10 PM
You should also remove all your semicolons and use recommended whitespace in your function arguments. You should review the pep8 style guidelines.
https://www.python.org/dev/peps/pep-0008/
As for the error message being on the wrong line, do you have much programming experience? Errors are reported where the error breaks something, not where the error occurred. Many Python "syntax errors" happened on the line above, or many lines above.
If you are getting error messages why are there no error messages included in your posts?
https://www.python.org/dev/peps/pep-0008/
As for the error message being on the wrong line, do you have much programming experience? Errors are reported where the error breaks something, not where the error occurred. Many Python "syntax errors" happened on the line above, or many lines above.
If you are getting error messages why are there no error messages included in your posts?