complete the list programming assignment . complete the dictionary programming assignment.

KhaledMaarof
listSample.py

# listSample.py # a program to demonstrate some sample operations on a list of numeric values # last edited Sept. 30, 2019 by C. Herbert #create a blank list myList = [] # values for use in this demonstration num1 = 42 num2 = 100 #add a value to the end of the list myList.append(57) #add the value of a variable to the list myList.append(num1) #add the value of another variable to the list myList.append(num2) #print the list print(myList) #iterate the liat to calculate the sum of the values in a numeric list sum = 0 for value in myList: sum = sum + value # end for # calculate average of the values in a numeric list average = sum / len(myList) # interate the list to find the minimum of the values in a numeric list minimum = myList[0] for value in myList: if (value < minimum): minimum = value # end if # end for print( "the sum of the values in the list is: ", sum) print( "the average of the values in the list is: ", average) print( "the minimum value in the list is: ", minimum)