I have a function
def float_():
price_data = {}
str_num = '3.505,32'
price_data['price'] = float(str_num.replace('.','').replace(',','.'))
price_data['currency'] = 'USD'
return price_data
is there any other way of achieving this float result ?