Earn extra honor and gain new allies!
Honor is earned for each new codewarrior who joins.
Learn more
  • thank you for the wiki link!

  • thank you for the clarification! So the issue is not actually residing in different kinds of 'nulls' (or Nones, in Py) that None and pass would generate - as I thought was happening - but in the way I returned None all together.

    Much appreciated, Chrono, thank you!

  • If you return None (read the note, null is for javascript and some other languages, for Python it is None) inside your loop, you're only comparing the first two values. You could explicitly return None at the end of your code, but it is the default returned value.

  • hi!
    i guess I got thrown off a little by the instructions stating that 'If the whole array is consecutive then return null.' so I would appreciate some clarity on the difference between None and Pass.

    In my code, within my if statement, I returned None if the numbers were consecutive, but this would fail the test.
    When I changed return None to a pass, the test would pass.

    I am trying to understand the difference between None and a pass since pass seems to be a null operation here: https://docs.python.org/2.0/ref/pass.html

    Thnks in advance!