Which of the following is right syntax to open a file.txt in append mode?

1
file_object = open("file.txt", "a")
2
file_object = open(file.txt, 'a')
3
file_object = open("file.txt")
4
file_object = open("file", "a")

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation