Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Where does one even begin to learn how to solve this puzzle if they have only ever done scripting?
I thought so too at first, but since we are iterating over every mark in the inputs it will eventually split the string on the leftmost marker.
If this wasn't true, than some the tests would fail.
You were right. My "sorted" code was wrong.
Also after reviewing other solutions, it was also completely unneeded. :)
Unfortunately, this Kata is bugged in python 3.
This solution passes the tests, but fails after submitting the solution.
Voted clever, but would not catch any subdomains besides 'www'.
For example:
domain_name('https://mail.google.com/')