2 ms·
Returns the total number of characters in a string print(s.count("")) That should be len(s). Note, for example: >>> "A".count("") 2
by eesmith 7y ago
Returns the total number of characters in a string
print(s.count(""))
That should be len(s). Note, for example:
>>> "A".count("")
2