I want a String to be converted to a float and if the string contains a calculation (like 1/3) it should calculate it and then convert.
I've tried by entering float(y), whereas y is my '+1/3'.
y = '+1/3'
float(y)
I expected the output to be something like '0.3333', but the error message i keep getting is "ValueError: could not convert string to float: '+1/3'".