Friday, July 24, 2015

Python - version > 2.6 and < 3

I was reading a book on Python by Charles Severance while taking a course. To install the environment, use these:

  1. http://www.pythonlearn.com/install.php
  2. https://www.python.org/download/releases/2.7.5/ (use windows x86 msi installer)
The following 31 words are keywords in Python (only 31?)


and          del        from        not      while

as            elif        global      or        with
assert      else       if             pass     yield
break       except   import     print
class        exec      in            raise
continue   finally    is            return
def           for        lambda    try

What about raw_input? That seems to be a keyword and not listed here.

No comments:

Post a Comment

Popular Posts

Annual Performance Review

  A Better Way to Evaluate Employees