Related map function

Map Function…Write a Python program to listify the list of given strings individually using Python map

#plz explain

1 Like

color = [‘Red’, ‘Blue’, ‘Black’, ‘White’, ‘Pink’]
print(“Original list: “)
print(”\nAfter listify the list of strings are:”)
result = list(map(list, color))

Listify the list means it will seperate each letter of each word and gives the output in the form of list only.

The code is given above for your reference.

1 Like