Skip to content

Instantly share code, notes, and snippets.

@acrymble
Created July 5, 2011 19:47
Show Gist options
  • Select an option

  • Save acrymble/1065725 to your computer and use it in GitHub Desktop.

Select an option

Save acrymble/1065725 to your computer and use it in GitHub Desktop.
Python shell string interpolate 2
frame2 = 'These are %s, those are %s'
print frame2
-> These are %s, those are %s
print frame2 % ('bananas', 'pears')
-> These are bananas, those are pears
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment