Ad
  • Default User Avatar

    Yep, I wrote it again and it worked. I don't know. Maybe something to do with mixture of tab & 4 spaces?
    By the way, thank you for helping, Chrono79.

  • Default User Avatar

    I don't know.
    Here, I see it as you, indented 4 extra spaces regarding the variable above, but in the coding space it has the same indentation.
    I don't understand it.

  • Default User Avatar

    Sorry. I am still editing it. Forgot to format for code, and then indentation changed, but I swear mine was ok :D :D

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    Hi,

    Newbie here. Sorry if it's not the right place to put this.
    I wrote a pair of statements to break the ice and tested.
    I passed 2 tests that shouldn't (the ones expecting None)
    Python code:

    def first_non_consecutive(arr):
        first = arr[0]
        print(first)
    

    I suppose it's because I made the program print instead of return, and even when I print something wrong, I don't return anything (and this is = None?)
    Just to let the author know.

    Thanks for this kata!