What is the return type of open() function ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is the return type of open() function ?

19th Jul 2016, 6:06 PM
Akshat
Akshat - avatar
4 Answers
+ 1
It opens a file and returns a corresponding file object
19th Jul 2016, 6:39 PM
jj Fer
jj Fer - avatar
0
it returns an object.
19th Jul 2016, 7:15 PM
Ankit Gangwal
Ankit Gangwal - avatar
0
you can open txt files with this and manipulate them
19th Jul 2016, 11:31 PM
Nebbo
Nebbo - avatar
0
the command returns the file to open
8th Aug 2016, 5:21 AM
Bill Davis