Boston Python Workshop 7/Friday/Tutorial: Difference between revisions

imported>Jesstess
 
(2 intermediate revisions by one other user not shown)
Line 321:
<pre>
print "I'm a happy camper"
</pre>
 
or we can <b>escape</b> the quote with a backslash:
 
<pre>
print 'I\'m a happy camper'
print 'Ada Lovelace is often called the world\'s first programmer.'
print "Computer scientist Grace Hopper popularized the term \"debugging\"."
</pre>
 
Line 360 ⟶ 352:
c = "fox jumps over the lazy dog"
print "The " + a * 3 + " " + b * 3 + " " + c
</pre>
 
3.
<pre>
print 2.0 * 123 + str(2.0) * 123
</pre>
 
Line 782 ⟶ 769:
 
 
[[BostonMontreal Python Workshop 7/Friday|&laquo; Back to the Friday Workshop page]]
Anonymous user