Python all & any built-in function
I have been using python for a couple of year only ,still learning lot of simple and new things. Recently I came to know about two built-in functions named all and any. Today while I was solving a problem , I used both functions which makes the code a bit nicer ,in my opinion.
The functions compares two singly linked lists and if they are equal ,returns 1 ,otherwise returns 0.