Schweben Dezimalstellen
for d in '$50.99', '$50.00', '49.99':
print(float(f"{float(d.removeprefix('$')):.2f}"[:-1]))
Excited Emu
for d in '$50.99', '$50.00', '49.99':
print(float(f"{float(d.removeprefix('$')):.2f}"[:-1]))