Question: Before attempting to program lettercount.py, create a file called design that includes some analysis on how you think the problem will be solved. Examples
Before attempting to program lettercount.py, create a file called design that includes some analysis on how you think the problem will be solved. Examples include: a flowchart of events in the program, pseudocode, or a step by step process written in plain english. If you choose to scan your design please make sure that it is legible. Next write a program that reads in a string on the command line and returns a table of the letters of the alphabet in alphabetical order which occur in the string together with the number of times each letter occurs. Case should be ignored. A sample run of the program would look this: Enter some letters >>> The cat in the hat 28 2 sc1 102 sh 3 11 7 n 1 st 4 This should involve writing a function called count letters that takes in a string and returns a dictionary with these letters and counts.
Step by Step Solution
There are 3 Steps involved in it
To solve the problem of counting letters in a string lets start by designing the solution Heres a st... View full answer
Get step-by-step solutions from verified subject matter experts
