Getting started

To get started, you will need the Python interpreter or a Python IDE.

Alternative course
If you like learning from videos & exercises instead, I recommend the course Automate the Boring Stuff with Python Programming

Python interpreter
You can download Python interpreter here: https://www.python.org/downloads/
The Python interpreter is a command line program:

python

Python programs are simply a collection of text files.  If you want something more sophisticated than notepad for editing, you will need a Python IDE (recommend). A Python IDE will make programming Python easier.

Python IDE
An IDE generally supports listing all program files, syntax highlighting and other features. There are a few Python IDEs y ou could choose from:

Using one of these Python IDEs makes programming easier than in say, notepad. It will automatically color the text like the example below:
python-program


Text input and output

9 thoughts on “Getting started

  1. Reply
    vikram - August 6, 2016

    should it be not?
    if len(sys.argv) < 2:

    1. Reply
      admin - August 11, 2016

      thanks! yes that should be len(sys.argv)

  2. Reply
    Matt - August 17, 2016

    Should also be too not to

    1. Reply
      admin - August 20, 2016

      Thanks, it’s resolved

  3. Reply
    LiuHaijin - August 17, 2016

    at line 11
    filename = sys.argv[0] or out of size

    1. Reply
      admin - August 20, 2016

      try with the updated code

  4. Reply
    JingleGu - August 19, 2016

    should it be not?
    filename = sys.argv[0]
    not or throw exception:IndexError: list index out of range

    1. Reply
      admin - August 20, 2016

      No, start your program with:
      python program.py filename

  5. Reply
    prathap - December 22, 2016

    Hope you will write about python classes and objects also 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *