Question: Python language (5 pts) 1. Write a function that takes a single parameter that is a string. Using loops, the function should count the number
(5 pts) 1. Write a function that takes a single parameter that is a string. Using loops, the function should count the number of occurrences of each letter of the string parameter and print it out for the user. Do not recount a letter. You may assume strings are only lower case letters. You may not use lists, dictionaries, or regular expressions. For example, the string hello, world" would result in: 1: 3 o: 2
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
