Created
August 27, 2010 12:50
-
-
Save neilkod/553293 to your computer and use it in GitHub Desktop.
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
>>> foo = 'hello' | |
>>> print foo % 'neil' | |
Traceback (most recent call last): | |
File "<stdin>", line 1, in <module> | |
TypeError: not all arguments converted during string formatting | |
>>> foo = 'hello %s' | |
>>> print foo % 'neil' | |
hello neil | |
>>> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment