How to convert dict value to a float
dict1= {'CNN': '0.000002'}
s=dict1.values()
print (s)
print (type(s))
What I am getting is:
dict_values(['0.000002'])
<class 'dict_values'> # type, but need it to be float
but what I want is the float value as below:
0.000002
<class 'float'> # needed type