1. Home
  2. Computing & Technology
  3. Python

How a Computer Reads a Program

From Al Lukaszewski, for About.com

5 of 8

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.

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 3

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

All rights reserved.