We are not sure if the file file.txt exists in the current directory. Select all error-free implementations of a program that reads this file and prints one line of the file at a time. If the file doesn't exist, the code should terminate gracefully.
Q26
30 Apr 2023
Programming in Python · Week 10
Q26.We are not sure if the file file.txt exists in the current directory. Select all error-free implementations of a program that reads this file and prints one line of the file at a time. If the file doesn't exist, the code should terminate gracefully.