faqts : Computers : Programming : Languages : Python : Common Problems : Strings

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 6 people (100%) answered Yes
Recently 5 of 5 people (100%) answered Yes

Entry

How can I determine the number of characters in a string?

Aug 9th, 2000 02:32
unknown unknown, Grant Edwards


len(s) will tell you how many elements (characters) are in string s.