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.