Hello everyone, I made a small recap of these super useful list functions in Python: map, filter, find, reduce.
Letβs start defining our array.
Defining our array of objects
For example, we gonna use some fruits and their price and quantity.
fruits = [
{
"name": "Apple",
"units": 3,
"price": 0.25
},
{
"name": "Mango",
"units": 6,
"price": 0.35
},
{
"name": "Banana",
"units": 4,
"price": 0.15
},
]
Now I have a developer blog, continue reading this post here: https://hhsm95.dev/blog/python-useful-list-functions-map-filter-find-and-reduce/
Thank you!
Top comments (0)