How do I iterate through the alphabet in Python, Please?
Can I simply ++ a char? what is an efficient way of doing this? I want to iterate through urls that have the www.website.com/term/#, www.website.com/term/a, www.website.com/term/b, www.website.com/term/c, www.website.com/term/d ... www.website.com/term/z format
You can use
string.ascii_lowercase which is simply a convenience string of lowercase letters,
>>> from string import ascii_lowercase >>> for c in ascii_lowercase: ... # append to your url
★ Back to homepage or read more recommendations: