Question: 2 . There is list L containing some numbers. Write a program to create a new list which contains the numbers which are either divisible

2. There is list L containing some numbers. Write a program to create a new list which contains the numbers which are either divisible by 5 or 7 or both. Print that new list in ascending order.
Input is already managed for you.
Input:
A list L
Output: A new list P
Example
Input:
L =[58,28,61,58,56,16,68,66,27,97]
Output:
[28,56] in python

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!