You are here:About>Computing & Technology>Python> Beginning Python> Python Programming - Before Programming Python - Arguments and Commands - Picking an Argument - Part 3
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 3

In Python, the command to print is simply "print". Like the example of "throw" above, "print" needs an argument, something to print (e.g., "ball"). In Python, this is offset by quotations:

print "ball"
The output from this statement would be simply (note: no print command and no quotation marks):
ball
By default, the output from print goes to the screen. There are ways to redirect the output, but we shall save that for a later tutorial.

  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.