Miner Of Ideas
Sep 12, 2024

--

Then it is better to store the list in memory instead of the map object.

like

bricks = ["red", "blue", "red", "blue", "red", "blue"]

green_bricks = list(map(lambda x: "green", bricks))

print(len(green_bricks))

print(green_bricks)

print(len(green_bricks))

--

--

Miner Of Ideas

I write about my passions: AI,Data and Software Engineering, Road Trips on Motorcycles, Data Science, Social Marketing, Investments, Books, Personal Development