Write a method in Python to read the content from a text file DIARY.TXT line by line and display the same on the screen.
Python method called read_diary_file that reads the content from a text file named “DIARY.TXT” line by line and displays it on the screen: def read_diary_file(): try: with open("DIARY.TXT", 'r') as…