I know many other languages use the eval() function to take a string argument and evaluate it as part of the source code (so you can run a function or assign a variable etc). I've seen it in PHP, ...
Python includes several modules for implementing algorithms elegantly and concisely using whatever style is most appropriate for the task. It supports purely procedural, object-oriented, and ...