I am not pretty sure how to convert a formatted string into a dictionary, what I was thinking was to separate my string into two lists and then join them into a dictionary but I am convinced that there must be a way to convert it from string to dictionary directly.
This is what I get so far:
string:
'Me_of_temp_max: 13.91 Me_of_temp_min: 11.33 Me_of_p_max: 14.25 Me_of_p_min: 14.53'
What I am looking fro is this:
{'Me_of_temp_max': 13.91, 'Me_of_temp_min': 11.33, 'Me_of_p_max': 14.25, 'Me_of_p_min': 14.53}
But What I did to reach this was:
items = {}
result = ['Me_of_temp_max', 'Me_of_temp_min', 'Me_of_p_ma', 'Me_of_p_min']
result1 = [13.91, 11.33, 14.25, 14.53]
for i in range(len(result)):
items[result[i]] = result1[i]
return items