Question: 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
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: e: 1: 3 o: 2 w: Needs to be solved by python 2. Write a function using one loop that takes in 10 integers from the user as input. Calculate the minimum, maximum, and average values of the integers that are given by the user. You are not allowed to use lists Return all three results
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
