Question: List months _ list is created with three integers read from input. Using list methods, initialize: count _ val with the number of occurrences of
List monthslist is created with three integers read from input. Using list methods, initialize:
countval with the number of occurrences of in monthslist.
sumval with the sum of all the elements in monthslist.
maxval with the largest element of monthslist.
minval with the smallest value in monthslist.
Click here to show example
# Reads three values from input into monthslist
monthslist
Your code goes here
print is found countval times in monthslist
print fList sum: sumval
print fMax: maxval
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
