Ad
  • Custom User Avatar

    Python sample test is wrong. Final solution accepted when sample test fails.

  • Custom User Avatar

    Printing list gives me memory adresses in python! How can i solve that?
    <main.Player object at 0x7f0f2129af60> should equal 'a'

  • Custom User Avatar

    Thank you! I enjoyed it!

  • 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

    Worked properly on py3, there is some floor division changes from py2 but I'm not into details.

    5.0 == 5
    True

  • Custom User Avatar
  • Custom User Avatar

    I switched to python 2.7 interpreter and all passed.
    Correct py3 code didnt work.
    Now however I cannot save solution.
    message: Great! You may take your time to refactor/comment your solution. Submit when ready.