Given below is a list of materials and their respective average years to decompose. We want to pick out all the materials that take longer than 100 years to decompose.
Use the map()
method to create a boolean list where True == x > 100
. Use this boolean list to pick out all the materials from materials
which take longer to decompose.