Question: Write Phyton all part. Activity 7: Lists CS 101 Page 2 of 2 Now we want to determine ne the quiz average for a list

 Write Phyton all part. Activity 7: Lists CS 101 Page 2

Write Phyton all part.

Activity 7: Lists CS 101 Page 2 of 2 Now we want to determine ne the quiz average for a list of quizzes. We should take the Now we want to determi list as a parameter and set a total variable to 0, def averageQuizzes(quizzes): a 1. total - e Next, we go through each quiz value adding it to the total. Fill in the blanks: for i in 2. total 3. Finally, we return the total value divided by the number of quizzes. Fill in the blanks: return Part 4: Being Nice(20 pts) 1. Finally, we want to drop the lowest quiz in a list. We will write a function that takes a list parameter and removes the lowest. Do this on your own. Part 5: Putting it all together(20 pts) Now, we will use all the functions. Show that the following works in the Python Shell to your lab instructor 1. >>> quizzes. getouizzes( Enter quiz 1: 9 Enter quiz 2: 5 Enter quiz 3: 8 Enter quiz 4: 10 > averageQuizzes(quizzes) 8.8 >>> dropLowest(quizzes) o averageQuizzes(quizzes) 9.0 >dropLowest(quizzes) >>averageQuizzes(quizzes) 9.5 rn >>> droplowest(quizzes) >> averagequizzes(quizzes) 10.0 >>>dropLowest(quizzes) >> quizzes Part 6(10 pts) Another Question: Write a Python program that takes a list and remove duplicate items from that list. Return new list

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!