OSX has been shipping with Python 2.7 for several years. I’m not sure why you are seeing 2.6.
Bill > On Oct 27, 2017, at 2:48 AM, Lutz Horn <lutz.h...@posteo.de> wrote: > > On Thu, Oct 26, 2017 at 07:59:10PM -0700, randyli...@gmail.com wrote: >> Hi Bob, thanks for responding. I'm not sure where to do so, my >> professor had us download Pycharm for mac's which uses python 2.6 > > The code from your question is not specific to Python 2 or 3. Just try > it in the Python installation you have available. > > Lutz > -- > https://mail.python.org/mailman/listinfo/python-list -- https://mail.python.org/mailman/listinfo/python-list