Created
May 13, 2014 16:11
-
-
Save randyzwitch/0ef795e5096e661fd139 to your computer and use it in GitHub Desktop.
Simple Python string interpolation
This file contains 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
In [1]: print "Here's a string subtitution for my name: %s" %("Randy") | |
Out[1]: "Here's a string subtitution for my name: Randy" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment