Computer Science, asked by linganhemanth, 4 months ago

Write the statement in python to perform the following operations.

i) To open a text file “Mypet.txt in write mode”.

ii) To open a text file “Mypet.txt” in read mode.​

Answers

Answered by valeriy69
3

\small\mathsf\color{pink}{Solution\: using\: python\: 3}

with open("Mypet.txt", "w") as f:

pass

with open("Mypet.txt") as f:

pass

\small\mathsf\color{lightgreen}useful?\: \color{white}\longrightarrow\: \color{orange}brainliest!

Answered by Anonymous
5

Answer:

with open("Mypet.txt", "w") as f:

pass

with open("Mypet.txt") as f:

pass

Similar questions