Montreal Python Workshop/Data types: Difference between revisions

imported>Merwok
(Created page with "__NOTOC__ ==Numbers: integers and floats== * Integers don't have a decimal place. * Floats have a decimal place. * Math mostly works the way it does on a calculator, and you...")
 
imported>Merwok
 
(2 intermediate revisions by the same user not shown)
Line 43:
 
* Strings are bits of text, and contain characters like numbers, letters, whitespace, and punctuation.
* String are surrounded by quotes (a pair of ' or a pair of ").
* Use triple-quotes (""") to create whitespace-preserving multi-line strings.
 
<pre>
>>> "'Hello"'
'Hello'
</pre>
Line 328:
 
 
[[BostonMontreal Python Workshop 7/Saturday lecture|&laquo; Back to the Saturday lecture page]]
Anonymous user