Script Discussion & Critique

Gerrit Holl gerrit at nl.linux.org
Thu Aug 28 05:47:28 EDT 2003


hokiegal99 wrote:
> print " "

The " " is unnecesary. The following statement does the same:

print

To the eye, there is no difference between th two.

> print "******************************************************"
> print "   Three Easy Steps to a Recursive find and Replace   "
> print "******************************************************"

I usually create a string first and then print it:

intro = """
========================
etc
========================
"""

print intro

This makes it more comfortable to change it.

Gerrit.

-- 
181. If a father devote a temple-maid or temple-virgin to God and give
her no present: if then the father die, she shall receive the third of a
child's portion from the inheritance of her father's house, and enjoy its
usufruct so long as she lives. Her estate belongs to her brothers.
        -- 1780 BC, Hammurabi, Code of Law
--
Asperger Syndroom - een persoonlijke benadering:
	http://people.nl.linux.org/~gerrit/
Het zijn tijden om je zelf met politiek te bemoeien:
	http://www.sp.nl/





More information about the Python-list mailing list