1. Write a python program with two functions: to eliminate all prime numbers in the list of N integers and to reverse N integers in the list. 2. The user will input numbers/elements (integers are...


1. Write a python program with two functions: to eliminate all prime numbers in the list of N integers<br>and to reverse N integers 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>Assume all elements of the list have a value greater than one<br>d. The first input is excluded<br>C.<br>3. Use the function remove_prime(list1) to eliminate all prime numbers in the list of N integers.<br>a. The function will create a new list (prime numbers excluded)<br>4. Use the function reverse_list(list1) to reverse list of N integers.<br>a. list1[::-1], list1.reverse(), or reversed(list1) are not allowed.<br>5. Take a screenshot of your codes on your python complier and the expected output.<br>SAMPLE INPUT 1<br>SAMPLE INPUT 2<br>15<br>10<br>9<br>3<br>34<br>10<br>81<br>5<br>57<br>23<br>8<br>100<br>79<br>6<br>4<br>77<br>21<br>68<br>12<br>EXPECTED OUTPUT<br>EXPECTED OUTPUT<br>PRIME DELETED:<br>PRIME DELETED:<br>[10, 8, 78, 4, 21]<br>[9, 34, 81, 57, 100, 6, 77, 68, 12]<br>ALTERED:<br>ALTERED:<br>[21, 4, 79, 8, 5, 10, 3]<br>[12, 68, 77, 6, 100, 23, 57, 81, 34, 9]<br>

Extracted text: 1. Write a python program with two functions: to eliminate all prime numbers in the list of N integers and to reverse N integers 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="" c.="" 3.="" use="" the="" function="" remove_prime(list1)="" to="" eliminate="" all="" prime="" numbers="" in="" the="" list="" of="" n="" integers.="" a.="" the="" function="" will="" create="" a="" new="" list="" (prime="" numbers="" excluded)="" 4.="" use="" the="" function="" reverse_list(list1)="" to="" reverse="" list="" of="" n="" integers.="" a.="" list1[::-1],="" list1.reverse(),="" or="" reversed(list1)="" are="" not="" allowed.="" 5.="" take="" a="" screenshot="" of="" your="" codes="" on="" your="" python="" complier="" and="" the="" expected="" output.="" sample="" input="" 1="" sample="" input="" 2="" 15="" 10="" 9="" 3="" 34="" 10="" 81="" 5="" 57="" 23="" 8="" 100="" 79="" 6="" 4="" 77="" 21="" 68="" 12="" expected="" output="" expected="" output="" prime="" deleted:="" prime="" deleted:="" [10,="" 8,="" 78,="" 4,="" 21]="" [9,="" 34,="" 81,="" 57,="" 100,="" 6,="" 77,="" 68,="" 12]="" altered:="" altered:="" [21,="" 4,="" 79,="" 8,="" 5,="" 10,="" 3]="" [12,="" 68,="" 77,="" 6,="" 100,="" 23,="" 57,="" 81,="" 34,="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here