Konversi string angka campuran menjadi mengapung

from fractions import Fraction
float(sum(Fraction(s) for s in '1 2/3'.split()))
Shy Shrike