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.
no it doesn't
Nice.
I have a question. Why cur_pos = initial_position does not work?! It will create a nested tuple actually. If initial_position = (0, 0), the cur_pos will be "((0, 0)),". I am looking for the reason of it.
Beautiful.
This does not fulfill the requirements at all.
Definitely not best practice. This fails to check if the correct amount of numbers are in each place, and I see what they were trying to do with the optional area code, but if you entered a phone number without an area code, it would fail, too, as you need a space before the phone number in that case.
ok
This comment is hidden because it contains spoiler information about the solution
Instead of [0-9] better use \d
Have you seen the comments below? Are you modifying the list?
SAMPLE TESTS:
r=2
list = ['Rajesh', 'Howard', 'Sheldon', 'Sheldon', 'Leonard', 'Leonard', 'Penny', 'Penny']
Penny (the last drinker, and then pop)
TEST RESULTS:
r=2
list = ['Penny', 'Penny', 'Penny', 'Penny', ...
Rajesh', 'Rajesh', 'Rajesh', 'Rajesh', ...
'Howard', 'Howard', 'Howard', 'Howard', ...
'Sheldon', 'Sheldon', 'Sheldon', 'Sheldon', ...
'Leonard', 'Leonard', 'Leonard', 'Leonard', ...
]
'Penny' should equal 'Leonard' <-- Why?