Printing Pattern Using Loops

  • + 3 comments

    Understanding what the task is was 5x more difficult than finding the solutoin.
    Python:
    return max(a.count(i)+a.count(i+1) for i in a)