Question: 1 0 . 8 LAB: Words in a range ( lists ) Write a program that first reads in the name of an input file,

10.8 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, ten-letter 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.txt
ammoniated
millennium
and the contents of input1.txt are:the output is:aspiration - in range
1 0 . 8 LAB: Words in a range ( lists ) Write a

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 Finance Questions!