Hi, Can someone please help me understand, What is the difference between the two statements:
1. file = open("myfile.txt") contents = file.read() print(contents) 2. with open("myfile.txt") as file: contents = file.read() print(contents) Warm regards Ragini