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
There is list L containing some numbers. Write a program to create a new list which contains the numbers which are either divisible by or 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
Output:
in python
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
