title: How to define FOR loop in python
body: <p>Please I need help here. In the code below, I want the FOR loop to loop through all the accounts with the associated API KEYs and SECRETs listed and send bitcoins from them to the recipient email address one after the other as long as their balance is greater than zero:</p>
  
  <pre><code>    #!/data/data/com.termux/files/usr/bin/python3.8
  
  from coinbase.wallet.client import Client
  import json
  
  api_key1 = '&lt;key&gt;'
  api_secret1 = '&lt;secret&gt;'
  api_key2 = '&lt;key&gt;'
  api_secret2 = '&lt;secret&gt;'
  api_key3 = '&lt;key&gt;'
  api_secret3 = '&lt;secret&gt;'
  api_key4 = '&lt;key&gt;'
  api_secret4 = '&lt;secret&gt;'
  api_key5 = '&lt;key&gt;'
  api_secret5 = '&lt;secret&gt;'
  client = Client(api_key, api_secret)
  accounts = client.get_accounts()['data']
  for account in accounts:
      sending_currency = account['currency']
      if float(account['balance']['amount']) &gt; 0:
          #Send to other account
          sending_account = client.get_account(account['id'])
          sending_amount = account['balance']['amount']
          print('sending %s %s from SENDER_EMAIL_ADDRESS' %(sending_amount, sending_currency))
          sending_account.send_money(to = 'RECEPIENT_EMAIL_ADDRESS', amount = sending_amount, currency = sending_currency)
  </code></pre>