how to find occurance of a character from a word python code example Example: python count character occurrences str1.count("a")