In Python3 ascii_lowercase
— it is a pre-initialized string used as a string constant. In Python, the string ascii_lowercase
will give lowercase letters "abcdefghijklmnopqrstuvwxyz".
Syntax: string.ascii_lowercase
Parameters: Doesn’t take any parameter, since it’s not a function.
Returns: Return all lowercase letters.
Note. Make sure to import the string library function to use ascii_lowercase.
Code # 1:
|
Output:
abcdefghijklmnopqrstuvwxyz
Code # 2: This code checks if the input contains a string lower ASCII characters only.
|
Exit:
GeeksForGeeks -" False geeks for geeks -" False pythonengineering -" True
Applications:
String constant ascii_lowercase
can be used in many practical applications zheniyah. Let’s see some code explaining how to use ascii_lowercase
to generate random strong passwords of a given size.
|
Exit :
52v3bdyk63