M

Mr. Dubey • 52.30K Points
Coach

Q. What is the correct syntax of open() function?

(A) file = open(file_name [, access_mode][, buffering])
(B) file object = open(file_name [, access_mode][, buffering])
(C) file object = open(file_name)
(D) none of the mentioned
Correct : Option (B)

Explanation:
 open() function correct syntax with the parameter details as shown below: file object = open(file_name [, access_mode] [, buffering])

Share

Discusssion

Login to discuss.

Loading Comments....