Counting the A's

Python FundamentalsMedium+10 XP+10

Counting the A's

A loop and an if can count only the letters you care about:

What number does it print?

Enter a whole number.

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.