Python Alphabet za pomocą rozumienia listy


var='a'
alphabets=[]
# starting from the ASCII value of 'a' and keep increasing the 
# value by i.
alphabets=[(chr(ord(var)+i)) for i in range(26)]
print(alphabets)
Aggressive Anaconda