# >>>>> Filter & Map Functions <<<<<
items = [
    ('Note Book', 20),
    ('Pen', 30),
    ('Eraser', 5),
    ('Ruler', 15),
    ('Pencil', 8)
]

Filtered_items = list(filter(lambda item: item[1] > 10, items))
price_list = list(map(lambda item: item[1], items))
print(Filtered_items)
print(price_list)
# =========================================
# Lambda is a small anonymous function. It can take many arguments but can only have one expression.
# sum_of_two_num = lambda num1, num2: num1 + num2
# sum_of_four_num = lambda num1, num2, num3, num4: num1 + num2 + num3 + num4
# print(sum_of_two_num(2, 4))
# print(sum_of_four_num(2, 4, 5, 5))

# =========================================

numbers = '33 44 55 66 77 88'
n = list(map(int, numbers.split(' ')))
print('numbers >>', n)

# =========================================
