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

Content added Content deleted
imported>Jesstess
imported>Jesstess
Line 210: Line 210:
"Hello"
"Hello"
"Python, I'm your #1 fan!"
"Python, I'm your #1 fan!"
</pre>

Like with the math data types above, we can use the <code>type</code> function to check the type of these strings:

<pre>
type("Hello")
type(1)
type("1")
</pre>
</pre>