def readlinesmton(filename, m ,n):#defining a method that holds three parameters
f=open(filename, 'r')#defining f variable that holds open method
l=f.readlines()#defining a variable l that readers input file
e=len(l)#defining e variable lengths of the file
s=m#defining s variable that holds parameter value
if(m<1):#Using if block that checks m is less than 1
s=1#use s variable that holds a value that is 1
if(n < e):#defining n variable that checks n less than e
e=n #using e that holds n value
for i in range(s-1, e, 1):#defining for loop that calculates lines
readlinesmton("input.txt", -1, 70)#Calling a method
Please find the ouput in the attached file.
In this code, a method "readlinesmton" is declared that takes three-parameter and inside the method, it uses the open method to open the file, read method to read the file, and len to calculate the length of the file and use the conditional statement to check the file inputs and use the loop to prints its values.
C, During the process of pre-phase of an interview, search about the company, practice answering typical interview questions and select an appropriate outfit.
During the pre-phase of an interview make a note about the company to get a better idea about the company. Prepare the essentials like the details about the company, interview date and time, and location of the company. Prepare yourself for answering the questions related to your domain during the interview. Choose formal interview clothes for attending the interview.