Question: please show me step by step in python 1) Create a list variable with the following data (0.5 marks) 2) Add a word to the
please show me step by step in python
1) Create a list variable with the following data (0.5 marks) 2) Add a word to the beginning of the list (0.5 marks) 3) Delete the 7th index of the list. (0.5 marks) 4) Delete the entry "valuable" (0.5 marks) 5) Search for the value "boo". (0.5 marks) a) Delete it if found ( 0.5 marks) b) Output an error message if not found ( 0.5 marks) 6) Add any value after the item "activity" (0.5 marks) 7) Output every other value of the list starting with index 0 using list slicing (0.5 marks) 8) Output every other value of the list starting with index 1 using a loop (0.5 marks)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
