Skip to content

Commit

Permalink
added example 8
Browse files Browse the repository at this point in the history
  • Loading branch information
mwarkentin committed Jan 8, 2011
1 parent a39e10c commit c9905be
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions ex8.py
@@ -0,0 +1,12 @@
formatter = "%r %r %r %r"

print formatter % (1, 2, 3, 4)
print formatter % ("one", "two", "three", "four")
print formatter % (True, False, False, True)
print formatter % (formatter, formatter, formatter, formatter)
print formatter % (
"I had this thing.",
"That you could type up right.",
"But it didn't sing.",
"So I said goodnight."
)

0 comments on commit c9905be

Please sign in to comment.