1. Home
  2. Computing & Technology
  3. Python

How a Computer Reads a Program

From , former About.com Guide

3 of 8

Picking an Argument - Part 1

The concept of looking for more information, however, needs further unpacking. Programming languages have a lot of the same characteristics as human languages. If we want to tell someone to do something, we need to communicate a couple of things:

  • who is going to do it (a subject like "Jack")
  • what is going to be done (a verb like "threw")

In addition, sometimes we need to communicate two more pieces of information:

  • to what they are going to do something (a direct object like "ball")
  • who will receive the effect of that action (an indirect object like "Jane")

When we put these items together, we get a sentence. Consider the following:

Jack threw the ball to Jane.
We know that the person doing the task is the subject, Jack. What is being done is 'threw'. What is being thrown (or acted upon) is 'ball'. And the one receiving the effect, or output, of the action is 'Jane'. Computer languages are no different.

Explore Python
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. Python
  4. Beginning Python
  5. Python Programming - Before Programming Python - Arguments and Commands - Picking an Argument - Part 1

©2009 About.com, a part of The New York Times Company.

All rights reserved.