Assume you have the following code: path = ‘debuggingtips.tx…
Assume you have the following code: path = ‘debuggingtips.txt’ str1 = ‘write only as much code as you can test.\n’ Assume the file object is named f Write code that uses a with statement to open a file for writing and writes str1 to the file. Your code: with ________________________ : # blank1 to open file _____________________ # blank2 to write str1 to the file ________________ # blank3 (either write ‘pass’ if nothing else is needed, or write the command needed here