Question: (I made up a website but really any website that ends in (.net/) will work. Thanks) Implement the function domain_type () in domain_type.py that returns
(I made up a website but really any website that ends in (.net/) will work. Thanks)
Implement the function domain_type () in domain_type.py that returns the domain type of the URL specified as argument. For example, the domain type of the URL http://www.swamiiyer.net/cs110/is net. You may assume that the URL starts with 'http://' and ends with '/'. $ python domain_type. py http://www.pythonhmwk.netet import stdio import sys # Returns the domain type of the given URL. def domain_type(URL): # Test client [DO NOT EDIT]. Reads a URL as command-line argument and writes # its domain type. def _main(): URL = sys.argv[1] stdio.writeln(domain_type(URL)) if)__name___= = ' _main____': ___main()
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
