Is it considered bad practice to re-use the same iterating variable name throughout multiple for-loops in a given script?
For example,
for url in urls1:
print url
for url in urls2:
print url
for url in urls3:
print url
I know that the url
variable isn't limited in scope to the for loop, so there's potential while using the url
variable outside of the for loop for it to get messy and may be more difficult to understand. But I'm curious, is there a "best" practice? Should I be using conventions like "url1", "url2"? Or am I overthinking this and it's just whatever works to make it easier to understand?