Skip to content

Instantly share code, notes, and snippets.

@adaptives
Created August 31, 2011 11:10
Show Gist options
  • Select an option

  • Save adaptives/1183314 to your computer and use it in GitHub Desktop.

Select an option

Save adaptives/1183314 to your computer and use it in GitHub Desktop.
LPTHW - Exercise 8
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)
print formatter % (
"I had this thing.",
"That you could type up right.",
"But it didn't sing.",
"So I said goodnight."
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment