Skip to content

Instantly share code, notes, and snippets.

@randyzwitch
Created May 13, 2014 16:11
Show Gist options
  • Save randyzwitch/0ef795e5096e661fd139 to your computer and use it in GitHub Desktop.
Save randyzwitch/0ef795e5096e661fd139 to your computer and use it in GitHub Desktop.
Simple Python string interpolation
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