"This article--the first in a series on Python
3--covers the new print() function, input(), changes to
input/output (I/O), the new bytes data type, changes to strings and
string formatting, and finally, changes to the built-in dict type.
This article is meant for programmers who are already familiar with
Python and are curious about the changes but don't want to wade
through the long list of Python Enhancement Proposals (PEPs).
(Links to the PEPs are available in Resources below.)
"The new print() function
"You'll have to retrain your fingers to stop typing print
"hello" and start typing print("hello"), because print is now a
function, not a statement. I know, it's painful. Every Python
programmer I know--as soon as they install version 3 and get the
error "incorrect syntax"--screams in agony. I know the extra two
characters are annoying; I know this will break backwards
compatibility. But there are advantages."
Some of the products that appear on this site are from companies from which QuinStreet receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. QuinStreet does not include all companies or all types of products available in the marketplace.