ONE LINERS IN PYTHON
These are the top 6 liners in Python but there can be any number of one liner. So comment the one liner if you know. SWAP TWO VARIABLES a , b = b , a SPACE SEPARATED INPUT mylist = list(input().split()) FACTORIAL OF A NUMBER reduce(lambda x,y:x*y, range(1,n+1)) LIST COMPREHENSION sqres= [x*x for x in … Continue reading ONE LINERS IN PYTHON
