def takeinput(): word=input("ENter word").lower() alphabets="abcdefghijklmnopqrstuvwxyz" print("==========================") print("Alphabet Frequency") print("==========================") for i in alphabets: count = word.count(i) if count: print(i, count) takeinput()