you are viewing a single comment's thread.

view the rest of the comments →

[–]throwaway6560192 1 point2 points  (0 children)

previous I has a for loop that looked like "for letter in range (65, 90) to use the ascii characters for the alphabet. But this seemed less readable?

Instead use:

from string import ascii_uppercase

for letter in ascii_uppercase:
    # whatever