Question: counting randoms letters(Python) The program will ask a user for a string. The program will then ask the user for a single letter. If the

counting randoms letters(Python)

counting randoms letters(Python) The program will ask a user for a string.

The program will ask a user for a string. The program will then ask the user for a single letter. If the user enters a letter, then the program will call a function to count the number of occurrences of the supplied letter in the string. If the user does not supply a letter, then the program will randomly pick one letter from the supplied string and call a function to count that letter. The program will output the string, the letter to be counted, and the number of occurrences of that letter

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!