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