Question: 1 0 . 8 LAB: Words in a range ( lists ) Write a program that first reads in the name of an input file,
LAB: Words in a range lists
Write a program that first reads in the name of an input file, followed by two strings representing the lower and upper bounds of a search range. The file should be read using the file.readlines method. The input file contains a list of alphabetical, tenletter strings, each on a separate line. Your program should determine if the strings from the list are within that range inclusive of the bounds and output the results.
Ex: If the input is:
inputl.
ammoniated
millennium
and the contents of inputtxt are:the output is:aspiration in range
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
