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))