I\'m using Python 3.6 and am trying to follow along with the very first example at the website below (full code also below) and am getting the below error: https://docs.pyth
the same probelm in Spyder (Anaconda3, python 3.6) when I try the external terminal.
Error message: AttributeError: module '__main__' has no attribute '__spec__'
I changed the Run console to 'Excute in current console', and applied it.
then if that doesnot work, try other conselor and then change back to 'Excute in current console'.
Finally, it works.
no '__spec__ = None' is needed.