I have to parse a data source:
my_string = "Alex - 30% / Bob - 23.33%"
Here my_string contains two names but it could also be one person in length or three.
I want to obtain a dictionary mapping the names to the values:
result = {'Alex': 30, 'Bob': 23.33}
I've tried multiple approaches, such as regular expressions and splitting the string, but I just can't seem to crack this one.