DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
python get num chars
mystr = "This is my string" count = mystr.count(i) # count = 3
PREVIOUS
NEXT
Tagged:
#python
#num
#chars
ADD COMMENT
Topic
COMMENT
Name
1+8 =
Submit