Write a statement in Python to open a text file DATA.TXT so that new contents can be written in it.

Question :

Write a statement in Python to open a text file DATA.TXT so that new contents can be written in it.

file=   open("DATA.TXT","w+") OR         file=   open("DATA.TXT","w+")


Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad