الرجوع
تسجيل الدخول
هذه نسخة مؤرشفة قديمة من الموقع انتقل إلى كاتوديمي ←
word = 'banana'
count = 0
for letter in word:
    if letter == 'a':
        count += 1
print(count)

How can this code be modified to count the letters 'b' instead of 'a'?