What is the difference between the following set of
statements (a) and (b):
a) P = open(“practice.txt”,”r”)
P.read(

What is the difference between the following set of
statements (a) and (b):
a) P = open(“practice.txt”,”r”)
P.read(10)
b) with open(“practice.txt”, “r”) as P:
x = P.read()​

About the author
Margaret

2 thoughts on “What is the difference between the following set of<br />statements (a) and (b):<br />a) P = open(“practice.txt”,”r”)<br />P.read(”

Leave a Reply to Sophia Cancel reply