Anonymous user
Boston Python workshop 2/Friday tutorial: Difference between revisions
Boston Python workshop 2/Friday tutorial (view source)
Revision as of 00:04, 27 May 2011
, 12 years ago→String Concatenation
Line 218:
<code>TypeError: cannot concatenate 'str' and 'int' objects</code>
Python is giving us a
There are many kinds of Python errors, with descriptive names to help us humans understand what went wrong. In this case we are getting a
Python gives us a helpful error message as part of the TypeError:
Line 240:
</pre>
produces a <code>TypeError</code>. We are telling Python to concatenate a string and an integer, and that's not something Python understands how to do.
In the similar expression
|