Hello, I'm having a problem I'm not getting conveter string for float
The program takes the price of a game dps converts to string and positions through the character and I am not able to convert
price =game.find(attrs="col search_price discounted responsive_secondr
price = str(price)
if not price[110] =="<":
print("Sem Deconto:", price[101:109])
print("Com Desconto:",float(price[104:109]))
else:
print("Sem Deconto:", price[101:110])
print("Com Desconto:",price[104:110])
Result
File "/home/alison/Documents/program/steam/search_steam.py", line 57, in price
print ("Discount:", float (price [104: 109]))
ValueError: could not convert string to float: '36, 99 '