Question: Python only!! In this assignment you are to create a list of 10 random numbers 1 - 20. ##code to create a list of random

Python only!! In this assignment you are to create a list of 10 random numbers 1 - 20.

##code to create a list of random numbers

import random sample = [] for i in range(1, 20)

sample.append(random.randint(1, 10))

You are to write the code that will:

print the values in sample to the screen

find the total of the values in sample and print it to the screen

find the average of the values in sample and print it to the screen

iterate though the of the values in sample and print those that are greater than the average

iterate though the of the values in sample and print those that are less than the average

iterate though the of the values in sample and print those that are equal to the average

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!