python prompt the user in the file practicse
python prompt the user in the file practicse
ask: 1. On your laptop or PC in the lab, create a folder named 260; you may have it already from Test 1; and in this folder create another folder named TESTs; 2. in the latter folder in the file practice_for_test2_yourLastName_yourFirstName.py write a Python 3 program that • prompts the user for an integer n > 1. You must keep on prompting the user until she types such a number greater than 1 (one); • reads n integers into a list (name it listOfNumbers); • calls a function getEvenNumbers( listOfNumbers) that: ➔ produces a new list (name it newList) that only contains integers from listOfNumbers that are even numbers and that have even indices in listOfNumbers ➔returns the newList • Prints both lists. For example, If the user types 11, when prompted for an integer n > 1, and after that he types 4 5 6 7 9 11 10 -12 -18 1 0 Then listOfNumbers = [ 4, 5, 6, 7, 9, 11, 10, -12, -18, 1, 0]; and getEvenNumbers( listOfNumbers) will return newList = [4, 6, 10, -18, 0]. Your program must have comments indicating your name, date, purpose of the program, etc. like the programs we have written in class. 3. ➔ Submit it your solution (practice_for_test2_yourLastName_yourFirstName.py) t