How do would you compress a for loop in python? I\'ve read lots of books in which they compress for loops but I never really understand how you do it. In my case, I am returning