string.ascii_lowercase

http://www.adilwaseem.com/

Introduction
Return with the letter in lowercase.

Syntax
string.ascii_lowercase->letter in lowecase.

Parameters
None

Import module
Importing module is required in the Shell window and the Editor window.

Examples
The method returns with:
 >>> import string
>>> string.ascii_lowercase
'abcdefghijklmnopqrstuvwxyz'
>>>

If statement returns with the alphabets in lowercase.
import string
search1=str(input("Type your search: "))
if search1=="lowercase alphabets" or "English lowercase letter" or "lowercase letters" or "alphabets":
        print(string.ascii_lowercase)
>>> 
Type your search: alphabets
abcdefghijklmnopqrstuvwxyz



Comments