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

Content added Content deleted
imported>Jesstess
imported>Jesstess
Line 233: Line 233:
my_string = "Alpha " + "Beta " + "Gamma " + "Delta"
my_string = "Alpha " + "Beta " + "Gamma " + "Delta"
print my_string
print my_string
</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>