Editing Community Data Science Workshops (Spring 2015)/Day 0 tutorial
From CommunityData
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 196: | Line 196: | ||
Hey now! The output from the previous example was really different and interesting; let's break down exactly what happened: | Hey now! The output from the previous example was really different and interesting; let's break down exactly what happened: | ||
< | <code>>>> "Hello" + 1</code><br /> | ||
>>> "Hello" + 1 | <code>Traceback (most recent call last):</code><br /> | ||
Traceback (most recent call last): | <code> File "<stdin>", line 1, in <module></code><br /> | ||
<code>TypeError: cannot concatenate 'str' and 'int' objects</code> | |||
TypeError: cannot concatenate 'str' and 'int' objects | |||
</ | |||
Python is giving us a '''traceback'''. A traceback is details on what was happening when Python encountered an Exception or Error -- something it doesn't know how to handle. | Python is giving us a '''traceback'''. A traceback is details on what was happening when Python encountered an Exception or Error -- something it doesn't know how to handle. |