Posts: 1,298
Threads: 38
Joined: Sep 2016
The easiest way is to run the script. If there are errors, you will get a Traceback indicating what the error is, correct the error and run the script again. Continue until there are no more errors. Many of the graphical IDE's also have a "Debug" option. You need to be more descriptive in your questions in order to get a more in depth response.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition