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 |23Activity 1.01: 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 10 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:1. Create a list of 100 random numbers.2. Create a new list from this random list, with numbers that are divisibleby 3.3. Calculate the length of these two lists and store the difference in a new variable.4. Using a loop, perform steps 1,2, and 3, and find the difference variable 10 times.5. Find the arithmetic mean of these 10 difference values.

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 Programming Questions!