Question: Lab 7 Lists: Larger Than N You will create your program in the IDLE environment and save it as a python file. Use the file
Lab Lists: Larger Than N
You will create your program in the IDLE environment and save it as a python file. Use the file naming convention yourlastnameLabpy
Modularity Your program should have at least these two functions:
main should accept input of a series of integers from the user and an integer n that will be the search number. main should call the function displaylarger and pass arguments: the integers stored in a list, and the number n
displaylarger should accept the parameters from main. Using a loop, the function should compare all numbers in the list of number from the user to n If the number is larger than n it should be stored in a second list containing only the numbers that are greater than n
This function should display: The original list, n and the list of numbers greater than n
Sample DialogOutput:
Programming Style Requirements.
Comments Begin your program with a comment that includes: a your name, bprogram status either Complete or describe any incomplete or nonfunctioning part of your program cA line description of what the program does.
Function comments each function should begin with a comment explaining what the function does
Variable names use meaningful variable names such as totaltaxes or numcookies.
Function names use meaningful verb names for functions such as displaytaxes.
Named constants Use named constants for all number values that will not be changed in the program such as RECIPESUGAR See section on Named Constants
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
