1. Write a python program to eliminate all prime numbers in the list. 2. The user will input numbers/elements (integers are separated by nextline) a. Maximum of 20 elements (2


1. Write a python program to eliminate all prime numbers in the list.<br>2. The user will input numbers/elements (integers are separated by nextline)<br>a. Maximum of 20 elements (2 <= N <= 20)<br>b. The values of the elements are between 2 and 100 (2 <= X <= 100)<br>С.<br>Assume all elements of the list have a value greater than one<br>d. The first input is excluded<br>3. No valid inputs are given – no text, no negative numbers<br>4. Use the function remove_prime(a_list). The function will create a new list (prime numbers excluded)<br>5. Take a screenshot of your codes on your python complier and the output<br>Sample Input 1<br>Sample Input 2<br>15<br>10<br>9<br>34<br>10<br>81<br>57<br>23<br>8<br>100<br>79<br>77<br>68<br>21<br>12<br>Sample Output 1<br>Sample Output 2<br>Prime Deleted:<br>Prime Deleted:<br>[10, 8, 78, 4, 21]<br>[9, 34, 81, 57, 100, 6, 77, 68, 12]<br>

Extracted text: 1. Write a python program to eliminate all prime numbers in the list. 2. The user will input numbers/elements (integers are separated by nextline) a. Maximum of 20 elements (2 <= n=""><= 20)="" b.="" the="" values="" of="" the="" elements="" are="" between="" 2="" and="" 100="" (2=""><= x=""><= 100)="" с.="" assume="" all="" elements="" of="" the="" list="" have="" a="" value="" greater="" than="" one="" d.="" the="" first="" input="" is="" excluded="" 3.="" no="" valid="" inputs="" are="" given="" –="" no="" text,="" no="" negative="" numbers="" 4.="" use="" the="" function="" remove_prime(a_list).="" the="" function="" will="" create="" a="" new="" list="" (prime="" numbers="" excluded)="" 5.="" take="" a="" screenshot="" of="" your="" codes="" on="" your="" python="" complier="" and="" the="" output="" sample="" input="" 1="" sample="" input="" 2="" 15="" 10="" 9="" 34="" 10="" 81="" 57="" 23="" 8="" 100="" 79="" 77="" 68="" 21="" 12="" sample="" output="" 1="" sample="" output="" 2="" prime="" deleted:="" prime="" deleted:="" [10,="" 8,="" 78,="" 4,="" 21]="" [9,="" 34,="" 81,="" 57,="" 100,="" 6,="" 77,="" 68,="">

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here