How to print alphabets in python?
We have many methods to do this. Here we’ll see some examples.
e.g.,
import string s = string.ascii_lowercase l = list(s) print(l)
e.g.,
import string s=string.ascii_uppercase l=list(s) print(l)
e.g.,
for a in range(97, 123): print(chr(a), end=" ")
In this way we can print the alphabet in python.
Subscribe
Login
Please login to comment
0 Discussion