#!/usr/bin/env python# -*- coding: utf-8 -*-defdisplay_lines(file_name:str,a:int,b:int)->None:withopen(file_name,"r")asfile:lines=file.readlines()forlineinlines[a-1:b]:print(line.strip())# Suppose 'input.txt' is a file in the same directory with content as described in the problemdisplay_lines("input.txt",4,12)