Easy
Change the List
Read a list of words. Append
end, insert start at the front, then remove the first occurrence of the word x if it is there. Print the list.Input
One line of words.
Output
A list.
Sample 1
Input
a x b
Output
['start', 'a', 'b', 'end']
Sample 2
Input
hello
Output
['start', 'hello', 'end']
Output appears here