Execute a python command in one minute

Image by StartupStockPhotos

Hello World!

Let’s say you are learning to play an instrument. The first song you learn will be something simple like “Jingle Bells” or “Baa! Baa! Black Sheep”. Your instrument will output the melody at the command of your fingertips. Similarly let’s first make the computer do our bidding by giving a simple command. Let’s print a statement.

The computer does not understand our native language. What it understands is an arcane language that we do not know. Luckily, we have a translator. Our translator is the python interpreter.

With the python installation there is a something called IDLE that allows us to execute python commands. IDLE is a python interpreter in interactive mode called shell.

We can type our Python commands in the shell and it executes them and show the result.

Let’s have some fun and execute the famous words of every beginner programmer. So download and install the latest version of python and follow these videos.

  1. Print a statement
  2. Create a function
  3. Customize function

These exercises can be found in the excellent book “Python programming: An introduction to computer science” by Dr. John Zelle.