Ad
  • Custom User Avatar

    I think that Python version is unfairly more complicated than JS and Ruby versions because of this ".each" functionality (though it is possible to do).
    It would have been much easier to pass lambda/function in the same way as in JS/Ruby version.

  • Custom User Avatar

    Hi !

    I'm totally stuck to this part :

    >> Note: Python, unlike Ruby and Javascript, doesn't have a pretty syntax for blocks of expressions and a forEach method for iterables. So you should implement this behaviour yourself.
    jane.has(2).arms.each.having(1).hand.having(5).fingers
    

    I don't understand how to implement the behaviour of "each" in python. I just miss this part, I start to be crazy ... and I can't even see the solutions :(

    Any ressource to help me ? Please ... Help me :'(

  • Custom User Avatar

    It's working !

    I just need to refactor my crappy code before to submit it !

    Thank you for your kata, it was really fun :)

  • Custom User Avatar

    Just in case, try to "reset" the trainer (do not forget to copy your code before). Or maybe try in a few hours (updates can effectively take some time)

  • Custom User Avatar

    I still have the same AssertionError

    Maybe it's not already updated ?!

  • Custom User Avatar

    should be good, now. Keep me posted if you encounter other problems.

  • Custom User Avatar

    damn, forgot about that. Let my look (again... :s ) at this.

  • Custom User Avatar

    Python version : I have this feedback :

    Traceback:
      in <module>
    AssertionError: B4B, you messed up your shuffle!
    

    Not sure if its normal, seems close to the previous feedback :)