Question Description
The open command does not require a close command when working with files
Q2.
The text file must be stored in the exact same directory as the python file working with the text file. Meaning you cannot designate a separate path.
True
False
Q3. Review the following code and match which each item of code is doing:
filename = ‘dog.txt’
with open(filename) as dog.object
for dog in dog.object
print(dog.rstrip())
this code won’t work because it is missing a read command