listing2-2.py 144 B

123456
  1. # Split up a URL of the form http://www.something.com
  2. url = input('Please enter the URL:')
  3. domain = url[11:-4]
  4. print("Domain name: " + domain)