Getting Started with Python Programming for Windows Users

Installation of Python

Check Installation

Writing Your First Python Program


# File: Hello.py
def main():
  print ("Hello World!")

main()

Running Your First Program

Getting Started with Python Programming for Mac Users

Python comes bundled with Mac OS X. But the version that you have is quite likely an older version. Download the latest binary version of Python that runs on your version of Mac OS X and install it on your system. Follow the instructions; they are simple.

If you have an older version of Python on your Mac do NOT uninstall it. You can have various versions of Python without any problems. Restart your computer. Now if you type python in any Terminal window the older version will be called upon and if you type python3 you will be using the newer verson. To check the version you are using, run this command:

python - V

python3 -V

Writing Your First Python Program

# File: Hello.py
def main():
  print ("Hello World!")

main()

Running Your First Program

Starting IDLE on Mac

Using IDLE on either Windows or Mac