Ad
  • Custom User Avatar

    Your code is wrong, see the input of the tests your code fails, there are addresses with only one dot.

    test.assert_equals(domain_name("http://www.google.com"), "google")  # works with this one
    test.assert_equals(domain_name("http://google.com"), "google")      # fails with this one