We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
this is perfect. Anything shorter becomes less readable. Using just 1 special function (zip) which is quite familiar in Python. Also, scalable to more items, and uses clear variable names.
One liners are not for professional coders, but for script kiddies showing off their code-fu.
Compare the Triplets
You are viewing a single comment's thread. Return to all comments →
this is perfect. Anything shorter becomes less readable. Using just 1 special function (zip) which is quite familiar in Python. Also, scalable to more items, and uses clear variable names.
One liners are not for professional coders, but for script kiddies showing off their code-fu.