Python - Context Managers
Which of the following is the correct syntax to open a file named
data.txt for reading using automatic resource cleanup?data.txt for reading using automatic resource cleanup?with syntaxwith open(filename, mode) as variable:15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions