Word = "python and python languages" frequency = {"python"} for char in word: if char in frequency: frequency[char] = frequency[char]+1 print(f"frequency of each character :{frequency}")
Discussions on Python.org
Word = "python and python languages" frequency = {"python"} for char in word: if char in frequency: frequency[char] = frequency[char]+1 print(f"frequency of each character :{frequency}")
i want to this program output of charecter count of
0 comments
No comments yet.