ΡΥTHOΝ PROGRAM Input 7 Output 4 Prime Removed: 7 [4, 10, 90, 6] 10 Reversed: 3 [2, 6, 90, 3, 10, 7, 4] 90 6 2 The first line contains the integer N where N is the number of elements in the list. The...


ΡΥTHOΝ PROGRAM<br>Input<br>7<br>Output<br>4<br>Prime Removed:<br>7<br>[4, 10, 90, 6]<br>10<br>Reversed:<br>3<br>[2, 6, 90, 3, 10, 7, 4]<br>90<br>6<br>2<br>The first line contains the integer N where N is the number of elements in the list.<br>The next N lines each contain an integer X. These are the elements in the list.<br>The input list has at least 2 elements and a maximum of 30 elements: 2 <= N<= 30.<br>Each element X in the list is between 2 and 100: 2 <= X<= 100.<br>The OUTPUT is two lists of integers - one with prime numbers removed and the other is<br>the reverse of the original list.<br>Note: Code WITHOUT using my_list[::-1], my_list.reverse(), or reversed(my_list).<br>

Extracted text: ΡΥTHOΝ PROGRAM Input 7 Output 4 Prime Removed: 7 [4, 10, 90, 6] 10 Reversed: 3 [2, 6, 90, 3, 10, 7, 4] 90 6 2 The first line contains the integer N where N is the number of elements in the list. The next N lines each contain an integer X. These are the elements in the list. The input list has at least 2 elements and a maximum of 30 elements: 2 <=><= 30.="" each="" element="" x="" in="" the="" list="" is="" between="" 2="" and="" 100:="" 2=""><=><= 100.="" the="" output="" is="" two="" lists="" of="" integers="" -="" one="" with="" prime="" numbers="" removed="" and="" the="" other="" is="" the="" reverse="" of="" the="" original="" list.="" note:="" code="" without="" using="" my_list[::-1],="" my_list.reverse(),="" or="">

Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here