I have strings like bi-annual (2 times in a year) or tri annual or annual that i would like to assign values which is inside a bracket if a condition is met.

```
For example. lets say, `Frq = bi annual` , so i want to assign value 2 to frq.
If `frq = tri annual`, i want to assign value 3 to frq.

```

Any idea how i can do this?

PS. I dont want to use if. I want something like dict that contains `{'bi annual' : 2,'annual' :1}` and take value from these dict if conditions are met and assign to frq .