Question: Write a Python script that asks the user to enter N integers (where N is entered by the user), and store them in a list.

 Write a Python script that asks the user to enter N

Write a Python script that asks the user to enter N integers (where N is entered by the user), and store them in a list. The program will then display how many even and odd numbers were entered by the user, the sum of integers that are multiple of 9, and the percentage of integers that are > 100. Finally, the program has to pair the first number in the list with the last, the second number with the second to last, etc. and store them in a separate list. If the list has an odd length, repeat the middle element twice for the last pair. Return an empty list if the input is an empty list. Example on pairing: [1, 2, 3, 4, 5, 6, 7] will be [[1, 7], [2, 6], [3, 5], [4, 4]] stored in a new list

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!