Ad
  • Custom User Avatar

    To force enumerate() start from 1 instead 0

  • Custom User Avatar

    I learn so much by reading other peoples codes here.
    I do wonder though, why add the start=1 in the second argument? (if it is called that, still learning :))
    readability?

  • Custom User Avatar

    If this was a job instruction from a boss. Sure. Definitly.

    But as a puzzle and training to make ourself better programmers? Nah, was good the way they did it.

  • Custom User Avatar

    To be fair They should've written that in capslocks... I was right about to close the tab when I've came here and read your comment :)))
    Thanks for saving some of my time :')

  • Custom User Avatar

    HA! was gonna complain on failing to recieve instructions, Until i now re-read the instructions and saw that "if given empty array or null, return a empty array"
    This is a great exercise to learn to read the instructions and make sure to understand what it is you are supposed to do. i failed to take the time to comprehend and suffered the consequences for my own failings, which is the essence of programming.
    Good one mate :)