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+")


CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad