# Write a python program to calculate the number of alphabets, digits and special symbols in the given string.

e.g. Input : “String@123#”

Output : Alphabets : 6

Digits : 3

Special symbol :2

e.g. Input : “String@123#”

Output : Alphabets : 6

Digits : 3

Special symbol :2

string = “This is string class 123453 @#$%^&”

l = len(string)

alphabets = 0

digit = 0

special_symbols = 0

for i in string:

if i.isalpha():

alphabets+=1

elif i.isdigit():

digit+=1

else:

special_symbols+=1

print(f"The total number of alphabets, digits and special symbols present in the string are {alphabets}, {digit} and {special_symbols} respectively")