bred

Generation

generate functionTue, 17 Jan 2023

function that takes in a html file, then open an website in a variable to replace all of its' body with the html file

import webbrowser def replace_body(html_file): website = "http://www.khanacademy.org/" html = open(html_file, "r") webpage = html.read() webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2) webbrowser.open(website, new=2)

Questions about programming?Chat with your personal AI assistant