print(colorthis works well if you only need to read the element of list but if you want to do write or update the elementyou need the indices common way to do that is to combine the functions range and lenfor in range(len(number))number [inumber[ output red white blue green deleting elements from list to delete list elementyou can use either the del statementdel removes the item at specific indexif you know exactly which element(syou are deleting or the remove(method if you do not know for example list ['red''green' ,]print(list del list[ print("after deleting element at index :")print(list output ['red''green' ,after deleting element at index ['red''green ,example numbers [ del numbers[ : print(numbersoutput[