Question: Assume my _ list is a list of integer values. Write a list comprehension statement that creates a second list named gt _ ten. The

Assume my_list is a list of integer values. Write a list comprehension statement that creates a second list named gt_ten. The gt_ten list should contain all the values of my_list that are greater than 10.
For example, if my_list contains the following values:
[1,12,2,20,3,15,4]
The gt_ten list should contain these values:
[12,20,15]

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!