Question: ```
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 = []

for plant in data:
    if "- Flower" in plant:
        flowers.append(plant)
    else:
        shrubs.append(plant)
print(flowers)
print(shrubs)

```

Answer: 
Split it on  `-` and then take the first split

```
for plant in data:
    plant_name, category = plant.split(' -', 1)
    if "Flower" in category:
        flowers.append(plant_name)
    else:
        shrubs.append(plant_name)

```
```
print([flower[:flower.index(' - Flower')] for flower in flowers])

```

To omit the " - Flower" suffix from the strings when printing. List comprehension is very useful, I highly recommend you check it out eventually