Which three lines have indentation problems?
You are creating a function that reads a data file and prints each line of the file. You write the following code. Line numbers are included for reference only. The code attempts to read the file even if the file…