Ad
  • Default User Avatar

    'Looks like you've solved it'

  • Custom User Avatar

    Don't use global vars, they keep their values between tests, so your code only works fine when called once. About indentation, use markdown formatting

  • Custom User Avatar

    Use backticks ` instead of single quotes ' and in their onw line.

    Like this:

    ```python

    Your code

    ```

    Don't use globals, they keep their values between tests, so your code will only work fine when called once.

  • Custom User Avatar

    Noone can help without seeing your code. If you put it here, put it between 3 backticks (```) and mark the comment as "spoiler".

    On the other hand, 22000+ people managed to solve it in python, so you will succeed too :-)