"""\nCode to detect the type of browser that is used to access the page\n"""\n\nimport requests \nimport re \n\ndef get_browser_type():\n    user_agent = requests.get(\http://www.useragentstring.com/\).text\n    reg_ex = r"(?<=User\\sAgent\\:\\s)(.*?)(?=\\))"\n    m = re.search(reg_ex,user_agent)\n    return m.group()\n    \nif __name__ == \__main__\:\n    print(get_browser_type())
Write a code to detect the type of browser that is used to access the page.?