Ad
  • Default User Avatar

    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)

  • Custom User Avatar

    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?

  • Custom User Avatar

    Print the players array to the console. The array used in the example test cases is different than the array used in the description.