Python algorithms (29/42)

Python algorithms