Python noob having a little trouble with strings

Peter J. Holzer hjp-usenet3 at hjp.at
Fri Oct 27 04:49:54 EDT 2017


On 2017-10-27 02:59, randyliu17 at gmail.com <randyliu17 at gmail.com> wrote:
> On Thursday, October 26, 2017 at 7:41:10 PM UTC-7, boB Stepp wrote:
>> On Thu, Oct 26, 2017 at 9:25 PM,  <randyliu17 at gmail.com> wrote:
[...]
>> Why not find out for yourself and print these in the Python
>> interpreter?  For instance:
>> 
>> > py
>> Python 3.6.2 (v3.6.2:5fd33b5, Jul  8 2017, 04:57:36) [MSC v.1900 64
>> bit (AMD64)] on win32
[...]
> 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

Open "Python Console ..." in the "Tools" menu.

Or just open a terminal window and type "python" there.

BTW, I find it hard to believe that PyCharm for the Mac "comes with"
Python 2.6. Python 2.6 is quite old. The Linux version isn't bundled
with a python interpreter and just uses whatever is already installed on
the machine. I guess it's the same for the Mac: Your version of MacOS
happens to include Python 2.6, so this is what PyCharm uses.

Oh, and ask your professor if you are really supposed to use Python 2.6.
There are differences between versions (especially between 2.x and 3.x)
and you'll be hopelessly confused if you use 2.6 and your professor's
examples are written for 3.5.

        hp


-- 
   _  | Peter J. Holzer    | Fluch der elektronischen Textverarbeitung:
|_|_) |                    | Man feilt solange an seinen Text um, bis
| |   | hjp at hjp.at         | die Satzbestandteile des Satzes nicht mehr
__/   | http://www.hjp.at/ | zusammenpaßt. -- Ralph Babel



More information about the Python-list mailing list