File size: 1,699 Bytes
9772b00
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
flowers_endangerment = {
    "Blazing Star": "Not considered endangered.",
    "Bristlecone Pine": "Least Concern (stable population).",
    "California Bluebell": "Not listed as endangered or threatened.",
    "California Buckeye": "Not endangered.",
    "California Buckwheat": "Generally secure.",
    "California Fuchsia": "Not endangered overall; some subspecies at risk.",
    "California Checkerbloom": "Not generally endangered; some subspecies critically imperiled.",
    "California Lilac": "Most species not endangered; some species are endangered.",
    "California Poppy": "Generally secure; some subspecies face threats.",
    "California Sagebrush": "Considered secure (G4-G5).",
    "California Wild Grape": "Apparently secure (G4).",
    "California Wild Rose": "Secure (G4).",
    "Coyote Mint": "Varies by species; some federally listed as endangered.",
    "Elegant Clarkia": "Secure (G5).",
    "Baby Blue Eyes": "Secure.",
    "Hummingbird Sage": "Apparently secure (G4).",
    "Delphinium": "Varies by species; some are endangered.",
    "Matilija Poppy": "Not currently endangered.",
    "Blue-Eyed Grass": "Not endangered.",
    "Penstemon Spectabilis": "Not endangered.",
    "Seaside Daisy": "Not endangered.",
    "Sticky Monkeyflower": "Not endangered.",
    "Tidy Tips": "Generally not endangered; some subspecies may be at risk.",
    "Wild Cucumber": "Generally not endangered.",
    "Douglas Iris": "Not endangered.",
    "Goldfields Coreopsis": "Varies by species; many not endangered."
}

def get_status(flower_name):
    """Return the endangerment status of a given flower name."""
    return flowers_endangerment.get(flower_name, "Flower not found in database.")