request reply urlopen(requestread(print(reply decode()languages syntax python print('hello world'to be robustthoughthe script also checks for both error cases explicitlyas all cgi scripts generally should here is the html generated in response to request for the fictitious language guido (againyou can also see this by selecting your browser' view source option after typing the url manually into your browser' address field)request reply urlopen(requestread(print(reply decode()languages syntax guido sorry-- don' know that language if the script doesn' receive any language name inputit simply defaults to the "allcase (this case is also triggered if the url ends with just ?languageand no language name value)reply urlopen(print(reply decode()languages syntax printf("hello world\ ")java system out println("hello world") +cout &lt;&lt"hello world&lt;&ltendlmore if we didn' detect these caseschances are that our script would silently die on python exception and leave the user with mostly useless half-complete page or with default error page (we didn' assign stderr to stdout hereso no python error message would be displayedfigure - shows the page generated and rendered by browser if the script is invoked with an explicit url like thisthe hello world selector