title: Python: ValueError: could not convert string to float: '44,052,037.79'
body: <p>Hello im getting &quot;ValueError: could not convert string to float: &quot; error in python I know what this error means but i cant fix it... i have converted string to float but getting same error anyone can help me ?</p>
  <pre><code>    #CAKE POOL
      cake_pool = '0x73feaa1ee314f8c655e354234017be2193c9e24e'
      cake_staked_url = &quot;https://api.bscscan.com/api?module=account&amp;action=tokenbalance&amp;contractaddress=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82&amp;address=&quot; + cake_pool + &quot;&amp;tag=latest&quot;
      response = requests.get(cake_staked_url)
      cakeurl = response.json()
      staked_cake = float(cakeurl['result']) / 1000000000000000000
      staked_cake = float(staked_cake)  &lt;---- converted string to float
      print(type(staked_cake) , str(staked_cake)) &lt;--- result 'float'
      staked_cake = '{0:,.2f}'.format(float(staked_cake))
      print(&quot;CAKE POOL: &quot; + str(staked_cake) + &quot; CAKE STAKED&quot;)
      #END OF CAKE POOL
  
      #BNB POOL
      bnb_pool = '0x326D754c64329aD7cb35744770D56D0E1f3B3124'
      bnb_staked_url = &quot;https://api.bscscan.com/api?module=account&amp;action=tokenbalance&amp;contractaddress=0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82&amp;address=&quot; + bnb_pool + &quot;&amp;tag=latest&quot;
      response = requests.get(bnb_staked_url)
      bnburl = response.json()
      staked_bnb = float(bnburl['result']) / 1000000000000000000
      staked_bnb = float(staked_bnb) &lt;---- converted string to float
      print(type(staked_bnb), staked_bnb) &lt;--- result 'float'
      print(staked_bnb)
      total = float(staked_cake) + float(staked_bnb) &lt;---- i want to sum 'staked_cake' and 'staked_bnb' but getting error
      print(total)
      staked_bnb = '{0:,.2f}'.format(float(staked_bnb))
      print(&quot;BNB POOL: &quot; + staked_bnb + &quot; CAKE STAKED&quot;)
      #END OF BNB POOL
  </code></pre>