You are viewing a single comment's thread. Return to all 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)
Seems like cookies are disabled on this browser, please enable them to open this website
Printing Pattern Using Loops
You are viewing a single comment's thread. Return to all 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)