Python Program to Count Occurrences of Each Character in String
istring = "Welcome to Webeduclick!"
print("The input string is:", istring)
mySet = set(istring)
for element in mySet:
countOfChar = 0
for character in istring:
if character == element:
countOfChar += 1
print("Count of character '{}' is {}".format(element, countOfChar))
Output: