Yes int() doesn't work for you because you have a dollar sign, and the number is float
money = '$156.99'
#if the dollar sign is in front
balance = float(money[1:])
money = '123.05$'
#if the dollar sign is in the end
balance = float(money[:-1])
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…