LOWER()

This is a string method that converts all alphabetic characters in a string to their lowercase equivalents, leaving numbers, symbols, and non-alphabetic characters unchanged. This method is commonly used for normalizing text, especially when performing case-insensitive comparisons, validating user input, or processing data where consistent formatting is required. For example, "HeLLo".lower() produces "hello". In cybersecurity and reverse engineering, lower() is useful when analyzing strings from logs, network traffic, or file formats where case variations may obscure matching patterns or signatures.

#!/usr/bin/env python3

def main() -> None:
    mixedString = "Am I DreAmIng";
    
    lowercaseString = mixedString.lower();
    print(lowercaseString);
    
    uppercaseString = mixedString.upper();
    print(uppercaseString);

if __name__ == "__main__":
    main();

Last updated