|
String ComparisonIn Python, string comparison functions indicate whether the string meets a particular condition. Each of these functions returns True if the condition is matched, or False if the condition is not matched. The following table lists the string comparison functions and what they do:
Because string comparison functions return True or False, they are ideal for use in conditional statements:
|