sockets in python self send_header('content-length'str(len(byte_msg))self end_headers(print('do_get(replying with message'self wfile write(byte_msgdef main()print('setting up server'server_address ('localhost' httpd threadinghttpserver(server_addressmyhttprequesthandlerprint('activating http server'httpd serve_forever(if __name__ ='__main__'main(once the server is up and runningit is possible to connect to the server using browser and by entering an appropriate web address into the browsersurl field this means that in your browser (assuming it is running on the same machine as the above programyou only need to type into the url bar local machine at port when you do this you should see the welcome message with the current date and time