I have a Python function which requires a number of parameters, one of which is the type of simulation to perform. For example, the options could be \"solar\", \"view\" or \"bot
You can use the assert statement like this:
assert sim_types in ['solar', 'view', 'both'], 'sim type parameter must be solar, view or both'
If sim_types is not in the list, python will raise an Assertion Error