Learn Python
WIP Boolean
11.3
Lesson

WIP-Strings - True or False

We can also compare two strings and obtain the result in the form of True or False. Somecare has to be taken while comparing strings. Python is case sensitive, so lowercase and uppercase letter comparison will result in False output. Whitespaces are also considered while comparing.

In the below example we have compared the strings