Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Content added Content deleted
imported>Jesstess |
imported>Jesstess |
||
Line 226: | Line 226: | ||
type(1) |
type(1) |
||
type("1") |
type("1") |
||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
print length |
|||
</pre> |
</pre> |
||
Line 291: | Line 281: | ||
Like the <code>type</code> function from before, the <code>str</code> function takes 1 argument, in the example the integer 1. <code>str</code> takes in input and produces a string version of that input as output. |
Like the <code>type</code> function from before, the <code>str</code> function takes 1 argument, in the example the integer 1. <code>str</code> takes in input and produces a string version of that input as output. |
||
====String length==== |
|||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
⚫ | |||
===Quotes=== |
===Quotes=== |