Skip to content

Latest commit

 

History

History
11 lines (9 loc) · 190 Bytes

find_count_of_char_in_string.md

File metadata and controls

11 lines (9 loc) · 190 Bytes

Counting characters in a string

s = "string"
cnt = 0
for i in s:
    cnt += 1
print(cnt)

This python 3.x program will display the count of characters in the given string.