Question: List Functions | 2 3 Activity 1 . 0 1 : Handling ListsIn this activity, you will generate a list of random numbers and then
List Functions Activity : Handling ListsIn this activity, you will generate a list of random numbers and then generate anotherlist from the first one, which only contains numbers that are divisible by three. Repeatthe experiment times; you'll see that the output varies each time, given that adifferent set of random numbers will be generated each time. Then, you will calculatethe average difference between the lengths of the two lists.These are the steps for completing this activity: Create a list of random numbers Create a new list from this random list, with numbers that are divisibleby Calculate the length of these two lists and store the difference in a new variable Using a loop, perform steps and and find the difference variable times Find the arithmetic mean of these difference values.
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
