I was using looking at the docs of http.server and ran the code:
def run(server_class=HTTPServer, handler_class=BaseHTTPRequestHandler):
server_address = ('', 8000)
httpd = server_class(server_address, handler_class)
httpd.serve_forever()
Now I can't close the server running on port 8000 , How do I close it?