Assume file1.txt exists and the following code reads file1.t…

Assume file1.txt exists and the following code reads file1.txt and copies its content to file2.txt path1 = “file1.txt”path2 = “file2.txt”f = open(???, ‘r’, encoding=”utf-8″)text = f.read()f.close()f = open(???, ???, encoding=”utf-8”)???f.close() Which group of code snippet(s) could replace the ???’s in order to accomplish copying the content of file1.txt to file2.txt?

Assume you have an html unordered list of stores with their…

Assume you have an html unordered list of stores with their links and the following code is provided: from bs4 import BeautifulSoup html_string = “””Stores    Store 1    Store 2    Store 3″””bs_obj = BeautifulSoup(html_string, “html.parser”)items = bs_obj.find_all(“a”)stores = ???print(stores[“Store 1”]) Which of the following answers could replace the ???’s so that the output of this code is: ‘www.store1.com’