how to check if a char appears a number of times in a str python3 code example
Example 1: python count character occurrences
str1.count("a")
Example 2: check how many letters in a string python
#use the built in function len()
len("hello")
#or you can count the characters in a string variable
a = "word"
len(a)