Program is Python 1. Create a program that accepts a user-specified number of students and their corresponding grades on a test. Store the names and grades in a dictionary. Once the user has entered the information, they should be able to type in a student's name and that student's individual test score should be output to the screen. - 2. Write a program that counts, in the given list of integers below, the number of occurrences of each integer. You must loop through the list to assign keys and values to the dictionary. Use must use another loop to print the dictionary values for the output. - list1 = [1,2,3,3,2,4,5,6,3,2,4,5,2,3,4,5,6,3] Example Output (It must look like this): 1 is in the list 1 time(s).2 is in the list 4 time(s).3 is in the list 5 time(s).4 is in the list 3 time(s).5 is in the list 3 time(s).6 is in the list 2 time(s).
1. Create a program that accepts a user-specified number of students and their corresponding grades on a test. Store the names and grades in a dictionary. Once the user has entered the information, they should be able to type in a student's name and that student's individual test score should be output to the screen. -
2. Write a program that counts, in the given list of integers below, the number of occurrences of each integer. You must loop through the list to assign keys and values to the dictionary. Use must use another loop to print the dictionary values for the output. -
list1 = [1,2,3,3,2,4,5,6,3,2,4,5,2,3,4,5,6,3]
Example Output (It must look like this):
1 is in the list 1 time(s).
2 is in the list 4 time(s).
3 is in the list 5 time(s).
4 is in the list 3 time(s).
5 is in the list 3 time(s).
6 is in the list 2 time(s).
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images