python lowercase

Posted by w3diy - 2 months ago

Example 1: Convert a string to lowercase

# example string
string = "WELCOME TO PAKAINFO, W3DIY AS WELL AS INFINITYKNOW WEBSITES!"
print(string.lower())

# string with numbers
# all alphabets whould be lowercase
string = "Th!s Sh0uLd B3 L0w3rCas3!"
print(string.lower())