Boston Python workshop 2/Friday tutorial: Difference between revisions
Content added Content deleted
(→Output) |
|||
Line 170: | Line 170: | ||
==Strings== |
==Strings== |
||
So far we've seen two data types: integers and floats. Another useful data type is a string, which is just what Python calls a bunch of characters (like numbers, letters, whitespace, and punctuation) put together. Strings are indicated by being surrounded by quotes: |
So far we've seen two data types: <b>integers</b> and <b>floats</b>. Another useful data type is a <b>string</b>, which is just what Python calls a bunch of characters (like numbers, letters, whitespace, and punctuation) put together. Strings are indicated by being surrounded by quotes: |
||
<pre> |
<pre> |