fruit = 'banana' count = 0 for letter in fruit: if letter == 'a': count = count + 1 # We can write this as (count += 1) print(count)