Will be there an error if i open a file as f=open("tree.txt") without specicifying opening mode in argument? | SoloLearn: Learn to code for FREE!

+1

Will be there an error if i open a file as f=open("tree.txt") without specicifying opening mode in argument?

5/14/2020 6:52:23 AM

Mohammed Ansah

1 Answer

New Answer

0

f=open("tree.txt") will default to read mode ( 'r' ) mode. https://www.programiz.com/python-programming/methods/built-in/open