Related map function

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

#plz explain

1 Like

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

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