python – Is it okay to give for loop index variables a name other than a simple x or y?

I’m currently cleaning up a web scrapping python script using selenium to download all module content from a blackboard university site.

My review question is in regards to the naming of index variables in a for loop. Currently I have the following nested for loops:

for x in range(len(modules)):

    for y in range(modules(x)('content')):


And I am thinking of changing the loops to something more like the following:

for module in range(len(modules)):

    for content in range(len(modules(module)('content'))):


Is this appropriate for me to do given the purpose of the loops? I have been scolded here before about something similar so wanted to be sure.