Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started