Python algorithms (25/42)

Python algorithms