Q:

Write a Python program to insert an element before each element of a list

0

Write a Python program to insert an element before each element of a list.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

color = ['Red', 'Green', 'Black']
print("Original List: ",color)
color = [v for elt in color for v in ('c', elt)]
print("Original List: ",color)

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now