Code: Select all
small_list_of_plants = list(("mushroom", "poison ivy", "grass"))
small_list_of_plants.insert(1, "potato")
print(small_list_of_plants)
# Will display ['mushroom', 'potato', 'poison ivy', 'grass']
Code: Select all
small_list_of_plants = list(("mushroom", "poison ivy", "grass"))
small_list_of_plants.insert(1, "potato")
print(small_list_of_plants)
# Will display ['mushroom', 'potato', 'poison ivy', 'grass']