Anonymous user
Boston Python Workshop 3/Friday/Tutorial: Difference between revisions
Boston Python Workshop 3/Friday/Tutorial (view source)
Revision as of 00:43, 17 June 2011
, 13 years ago→String Concatenation
imported>Jesstess |
imported>Jesstess |
||
Line 228:
</pre>
There's another useful function that works on strings called <code>len</code>. <code>len</code> returns the length of a string:
Printing different data types together▼
<pre>
string = "Hello"
len(string)
print len("triskaidekaphobia")
length = len("")
print length
</pre>
<pre>
|