title: Python keep track of loop count outside of loop?
body: <p>So I'm having a loop run 2 times but I have another loop inside of that loop running x amount of times . I need to keep track of the loop inside count even when the first loop is done looping so I could change proxies accordingly.</p>
  
  <pre><code>proxyList=[proxy1,proxy2,proxy3,proxy4,proxy5]
  
  #this will be done 2 times
  for accts in acctPile:
  
     with requests.Session() as s:
  
         for loop,channel in enumerate(channelsss):
  
             #changes proxies each 7th loop but restarts whenever loop is over :(
             proxies = proxyList[loop // 7 % len(proxyList)]
  </code></pre>
  
  <p>The problem I'm facing is when the first loop is done looping the inside loop count restarts so it uses the same proxies. </p>
  
  <p>How can I make it count from where it left at so it doesn't use the same proxies?</p>