Question: solve in simple python * This program counts the number of letters a in strings. Write a program that asks the user to enter a

solve in simple python * This program counts the number of letterssolve in simple python

* This program counts the number of letters "a" in strings. Write a program that asks the user to enter a string and displays the number of "a"-s in it. The user can enter strings repeatedly. By entering the symbol "%" he/she ends the program. At the end, the program displays the number of entered strings and the total number of a"-s in all strings. A possible output: This program displays a number of "a" in strings. To end the program enter "%" for the string, Enter a string: aquamarine There are 3 "a"-s in the string. Enter the next string: less There are 0 "a"-s in the string. Enter the next string: abracadabra There are 5 "a"-s in the string. Enter the next string: awful There are 1 "a"-s in the string. Enter the next string: % You entered 4 strings. There were 9 "a"-s in these strings

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!