Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 02:47, 17 June 2011
, 12 years ago→Quotes
imported>Jesstess (→Quotes) |
imported>Jesstess (→Quotes) |
||
Line 333:
<code>m a happy camper'</code>
which it doesn't understand -- the quotes aren't balanced and it's not 'valid' Python. Those letters aren't variables (we haven't assigned them to anything), and that trailing quote isn't balanced. So it raises a <code>SyntaxError</code>.
We can use double quotes to avoid this problem:
|