python string lowercase letters code example

Example 1: how to check if a letter is lowercase in python

for c in s:
    if c.islower():
         print c

Example 2: from uppercase to lowercase python

# By Alan W. Smith and Petar Ivanov
s = "Kilometer"
print(s.lower())

Example 3: python all lowercase letters

import string
print string.ascii_lowercaseOutputabcdefghijklmnopqrstuvwxyz

Example 4: python string lowercase

startString = "TeST StrIng"
lowerCaseString = startString.lower()
print(lowerCaseString)
# Output -> "test string"