You are here:About>Computing & Technology>Python> Beginning Python> Python Programming - Before Programming Python - Arguments and Commands - Picking an Argument - Part 1
About.comPython
Newsletters & RSSEmail to a friendSubmit to Digg

How a Computer Reads a Program

From Al Lukaszewski,
Your Guide to Python.
FREE Newsletter. Sign Up Now!

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.

  1. Clueless Computers
  2. Reserved Words Are Key
  3. Picking an Argument - Part 1
  4. Picking an Argument - Part 2
  5. Picking an Argument - Part 3
  6. Three Statements - Part 1
  7. Three Statements - Part 2
  8. Summary

<< Previous | Next >>

 All Topics | Email Article | | |
Advertising Info | News & Events | Work at About | SiteMap | Reprints | HelpOur Story | Be a Guide
User Agreement | Ethics Policy | Patent Info. | Privacy Policy©2008 About, Inc., A part of The New York Times Company. All rights reserved.