open function with write mode

file = open('test.txt', 'w')
file.close()

Leave a Comment

Your email address will not be published. Required fields are marked *