In Haskell I would write: main = do mapM_ print . map (\x -> x^2) . filter (\x -> (mod x 2) == 0) $ [1..20] in Python I would have to use either many brackets or useless variables ... is there anything like . and $ in Python? Continue reading...