Answer:
The code is attached.
Explanation:
I created a string s including 6 colors with spaces in between. Then I converted the string into a list x by using split() method. I used three different methods for removing elements from the list. These methods are remove(), pop() and del.
[tex]\\[/tex] Then I used methods append(), insert() and extend() for adding elements to the list.
[tex]\\[/tex] Finally I converted list into a string using join() and adding space in between the elements of the list.