Aug-07-2018, 03:34 PM
(Aug-07-2018, 10:33 AM)Qwert_Yuiop Wrote: Why are you not getting error in the first snippet?
Well I went ahead and tried both code snippets again, this time on a windows machine and once again they both worked. Inherently, this doesn't surprise me because there is nothing wrong with the code itself. The error you got from attempting to run the first bit of code suggests to me that your working with an older version of Python. Are you by chance working with Python 2.x?