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.
players has a .name property. I thought part of the fun was that you can't see the property by viewing the list.
It is there. Try print(players[1].name)
I print the players in python and result is as follows:
[<main.Player object at 0x7ffbf3a11828>,
<main.Player object at 0x7ffbf27b6ef0>,
<main.Player object at 0x7ffbf27b6860>,
<main.Player object at 0x7ffbf27b66a0>,
<main.Player object at 0x7ffbf27b6668>,
<main.Player object at 0x7ffbf27b6470>,
<main.Player object at 0x7ffbf27b6630>,
<main.Player object at 0x7ffbf27b6438>,
<main.Player object at 0x7ffbf27b6518>,
<main.Player object at 0x7ffbf27b6358>]
Is codewars changing something in test framework in buggy way, or this cata is not ready for python?
Print the
players
array to the console. The array used in the example test cases is different than the array used in the description.I need a little more explaining. How do I find out what is in the player's array? I was assuming
players = [a,b,c,d]
but then one of the test's has this
Test.assert_equals(duck_duck_goose(players, 10), "z")
I think it should be "b". Where did "z" come from?
wow, I can't believe ruby has hypot calculators built in. This is awesome!