What does the following code do?with open('file.txt', 'w') as file:file.write('Hello World') - Study24x7
Social learning Network
03 Apr 2024 11:15 AM study24x7 study24x7

What does the following code do?
See more

A

Reads from file.txt

B

Writes "Hello World" to file.txt

C

Deletes file.txt

D

Creates a new file

study24x7
Write a comment
Related Questions
500+   more Questions to answer
Most Related Articles