lower() method converts all uppercase characters in a string into lowercase characters and returns it.
lower()method doesn’t take any parameters.
returns a lowercased string of the given string
CODE 1: String with only alphabetic characters
Original String: GeEks FOR geeKS Converted string: geeks for geeks
CODE 2: String with alphanumeric characters
Original String: G3Ek5 F0R gE3K5 Converted String: g3ek5 f0r ge3k5
Application: One of the common application of lower() method is to check if the two strings are same or not
Strings are same
Attention geek! Strengthen your foundations with the Python Programming Foundation Course and learn the basics.
To begin with, your interview preparations Enhance your Data Structures concepts with the Python DS Course.