Let's say I have the following code,
file1 = open("myfile","w")
#Write to file1...
#Open Second File
file2 = open("otherfile","w")
#Write to file2...
file1.close()
file1 = file2
file2.close()
Will this effectively result in all files being closed or will file1 still have an open file (otherfile) that can be written to still?