# reading everything from file and displaying it def main(): ''' reads the infromation from a file and displays ''' filename = input('Please, input the filename:') input_source = open(filename) listLines = input_source.readlines() print('read from file:', listLines) print("Let's display it nicely:") for line in listLines: print(line) input_source.close() print('File is closed') print("The number of lines in the file: ",len(listLines)) main() # Answer the question: # Why this code is better than the previous one (in readAllfromFile.py)?