Answer:
Python code explained below
Explanation:
f = open(input())
#loading the file, which will serve as the input
s1 = input() Â
s2 = input()
lines = f.readlines()
for line in lines:
  line = line.strip(
# strip() removes characters from both left and right
  if s1 <= line <= s2:  #setting the range
    print(line)
f.close()
#closing the file