May-07-2017, 08:08 AM
I copied your original code, pasted it into a file which I saved as test1.py
I then ran it from the commandline :
I then ran it from the commandline :
python3 ./test1.pyand it worked fine on my Mint 18.1 system with Python 3.5.2