or

```python
possible_abundances={'coronal': 'cor', 'photospheric': 'pho',}
abund = possible_abundances.get(abundances, None)
if abund is None: 
    raise ValueError("the possible values are either " + " or ".join(possible_abundances.keys()))
```