code:-

color = ["Red", "Black", "Green", "White", "Orange"]
print("Original list elements:")
print(color)
del color[0]
print("After removing the first color:")
print(color)
output:-

Original list elements:
['Red', 'Black', 'Green', 'White', 'Orange']
After removing the first color:
['Black', 'Green', 'White', 'Orange']


Post a Comment

If you have any doubts, Please let me know
Thanks!

Previous Post Next Post