Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 00:06, 16 June 2011
, 13 years ago→Writing Functions
imported>Jesstess |
imported>Jesstess |
||
Line 620:
<pre>
▲x = type(my_var)
</pre>
Running this assigns the type of <code>
We also saw the <code>str</code> function, which returns a string representations of an objects so we can print it. For example:
|