Jan-08-2019, 08:05 PM
Your code is fine, so something must be wrong with your environment.
Are you using an IDE like PyCharm? Are you sure you are executing the correct code (run does not necessarily execute the code you are looking at)?
Try executing the code in the command line / console using the same Python Interpreter as that you have configured for the project/session in your IDE.
Are you using an IDE like PyCharm? Are you sure you are executing the correct code (run does not necessarily execute the code you are looking at)?
Try executing the code in the command line / console using the same Python Interpreter as that you have configured for the project/session in your IDE.
I am trying to help you, really, even if it doesn't always seem that way