+ 2

Alphabet List

Is there any way I can make a list of alphabet characters without having to type them one by one? there is no problem doing it with numbers using range()

14th Aug 2020, 3:51 AM
Gaston Claver Honomou
Gaston Claver Honomou - avatar
4 Answers
+ 3
All characters holds an ASCII value rather than character itself which is continuous in nature so all you need is the value of 'a' and start incrementing it one by one till it reaches 'z'. like this👇 https://code.sololearn.com/cIkm6kVD7tab/?ref=app https://code.sololearn.com/cD9cJiy4qTSs/?ref=app
14th Aug 2020, 3:56 AM
Arsenic
Arsenic - avatar
+ 2
It works fine thank you, just forgot to specify that I wanted to try it in python 3.
14th Aug 2020, 4:05 AM
Gaston Claver Honomou
Gaston Claver Honomou - avatar
+ 2
I used C++ because you mentioned it on the top in your relevant tags. now, have a look at edited answer, I have included python version of the same also.👍
14th Aug 2020, 4:08 AM
Arsenic
Arsenic - avatar
+ 2
yeah that’s right, I should have not then
14th Aug 2020, 4:13 AM
Gaston Claver Honomou
Gaston Claver Honomou - avatar