data = [
    "Andromeda - Shrub",
    "Bellflower - Flower",
    "China Pink - Flower",
    "Daffodil - Flower",
    "Evening Primrose - Flower",
    "French Marigold - Flower",
    "Hydrangea - Shrub",
    "Iris - Flower",
    "Japanese Camellia - Shrub",
    "Lavender - Shrub",
    "Lilac- Shrub",
    "Magnolia - Shrub",
    "Peony - Shrub",
    "Queen Anne's Lace - Flower",
    "Red Hot Poker - Flower",
    "Snapdragon - Flower",
    "Sunflower - Flower",
    "Tiger Lily - Flower",
    "Witch Hazel - Shrub",
]

flowers = []
shrubs = []

# write your code here
for x in data:
    if "Flower" in x:
        flowers.append(x)
    if "Shrub" in x:
        shrubs.append(x)
print(flowers)
print(shrubs)





















# for plant in data:
#     if "Flower" in plant:
#         flowers.append(plant)
#     if "Shrub" in plant:
#         shrubs.append(plant)
# print(flowers)
# print(shrubs)
#
#
#
# flower = "Flower" in data
# shrub = "Shrub" in data
#
# if flower in data:
#     flower.append(flowers)
# if shrub in data:
#     shrub.append(shrubs)
#
#
#
# for index, character in enumerate(data):
#     print(index, character)
#
#     if 'Shrub' in index:
#         for shrub in data:
#             shrubs.append(str(shrub))
# print(shrubs)
#
# flowers = data.append("Flowers")
# print(flowers)
# for shrubs in data:
#     print(shrubs)
# for index, character in enumerate(data):
#     print(index, character)
