Created
July 5, 2011 19:47
-
-
Save acrymble/1065725 to your computer and use it in GitHub Desktop.
Python shell string interpolate 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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