Engine_parts = ['Twin Turbo','Nitro ]
# Changing Elements
# MODIFTYING ELEMENTS IN A LIST
Number = ['1','2','3','4','5','6','7','8']
Number[3] = '33'
print(Number)
# Exercise Write a Story about Buying and I want to replace Something
Shopping_list = ['Fruits','Soda','Water','Chips']
Shopping_list[3] = 'Coffee'
print(Shopping_list)
# NOW BY CHANGING A RANGE OF ITEMS VALUES
Shopping_list[2:3] = ["Coffee","Tea"] # Range of items
print(Shopping_list)
# If you insert more items than you replace
Foods = ['Pizza','Chips','Burger']
Foods[:1] = ['Wings','Chicken fries'] #Note: The length of the list will change when the number of items inserted does not match the number of items replaced.
print(Foods)
# if you insert more less items what will happened?
Foods[1:4] = ['Sausage'] # Note: Change the second and third value by replacing it with one value
print(Foods)
# Adding List Items
# Append Items