3 ms·
>Every Stack Overflow question has a multitude of answers ranging from imperative to functional style and with various benefits and drawbacks. This is one of t
by hexane360 7y ago
>Every Stack Overflow question has a multitude of answers ranging from imperative to functional style and with various benefits and drawbacks.
This is one of the reasons I love Python. It's a great exercise to rewrite the same code imperative, recursive, with generators, with iterables, etc. Python is very good at supporting a wide range of programming styles.