Python Practice: Functional Programming