This repo contains examples and tools related to functional programming in Python.
This file demonstrates the use of lambda functions in Python. It includes examples for:
- Adding two numbers
- Checking if a number is even
- Squaring a number
This file includes several functional programming tools:
square_numbers(): Applies thesquarefunction to each element in a list usingmap().filter_even(): Filters out even numbers from a list usingfilter().sum_numbers(): Computes the sum of numbers in a list usingreduce().