# 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) input_source.close() print('File is closed') print("The number of lines in the file: ",len(listLines)) main()