# exercício 8.2 com count

fruit = 'banana'
index = -len(fruit)
while index < 0:
    letter = fruit[index]
    print(letter)
    index = index + 1

#  nova função

fruta = 'banana'
print(fruta.count('a'))

6c1d4a665aece1c896c37132d926ee1eef963970
<mask token>

<mask token>
while index < 0:
    letter = fruit[index]
    print(letter)
    index = index + 1
<mask token>
print(fruta.count('a'))

fruit = 'banana'
index = -len(fruit)
while index < 0:
    letter = fruit[index]
    print(letter)
    index = index + 1
fruta = 'banana'
print(fruta.count('a'))

# exercício 8.2 com count

fruit = 'banana'
index = -len(fruit)
while index < 0:
    letter = fruit[index]
    print(letter)
    index = index + 1

#  nova função

fruta = 'banana'
print(fruta.count('a'))
