Question: use python only Write a program that allows the user to insert a colour name in the following list, at a chosen position, only if

use python only
Write a program that allows the user to insert a colour name in the following list, at a chosen position, only if this name is not already in the list. colours =[" Red", "Yellow", "Green", "Purple", "Orange", "Cyan", "Magenta"] The user is asked to enter the colour name to be inserted, and the colour name it should be inserted before in the list. If the user wants to insert the new colour at the end, the user enters "End". Then, the program inserts the new word at the chosen position, and prints the updated list. Note: - The output must be in the format shown in the examples below, including the format of the prompt, and all spaces and punctuation. - The new colour is only inserted if it is not already in the list. For example
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
