Alphabet Python Utilisation de la compréhension de la liste


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