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
Answer» B. file object = open(file_name [, access_mode][, buffering])
Explanation: open() function correct syntax with the parameter details as shown below: file object = open(file_name [, access_mode] [, buffering])
1.5k
0
Do you find this helpful?
12

Discussion

No comments yet