Count characters Write a program whose input is a string which contains a character and a phrase, and whose output indicates the number of times the character appears in the phrase. The output should include the input character and use the plural form, n's, if the number of times the characters appears is not exactly 1. Ex: If the input is n Monday the output is: ת 1 Ex If the input is: z Today is Monday the output is: Oz's Ex If the input is: n It's a sunny day the output is: Oz's Ex: If the input is: n It's a sunny day the output is: 2 n's Case matters. n is different than N. Ex If the input is n Nobody the output is On's

Respuesta :

The program keeps track of how many times an alphabet appears in a given sentence or user-supplied word.

The software was made using Python 3 as follows:

input = user input

"Enter the phrase:"

requests input from the user

User input = char to count[0]

Since it is the first letter in the input program, #subset the letter to count.

user input[1:] word =

The word is #subset

Word.count(char to count) = num counts

Using the count function, determine how many times each letter of the alphabet appears.

If word has char to count:

#verify that the character being counted is present in the word

print(num counts)

#show the frequency of occurrence

else :

print(0)

Print 0 if #ifit doesn't happen.

Know more about software here:

https://brainly.com/question/1022352

#SPJ4