Nov-16-2018, 08:02 AM
You have two alternative options/paradigms: Ask for permission or Ask forgiveness, not permission
- In the former you would check that data is indeed what you expect it to be, e.g. using if block
- In the later you will use try/except block to handle gracefully the error if there is any
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