write a program to accept two strings and check whether they are equal or not ignoring the class.
Answers
Answered by
3
The following codes have been written using Python.
Once both the strings have been entered, we check their equality using a conditional statement, with appropriate messages for both the True and False cases. The '==' operator is used to check for equality between two elements. Since Python is a case-sensitive language, it will take into consideration if the strings are the same and one/two of the characters are in uppercase/lowercase.
An example to demonstrate the case-sensitivity exception has been provided below.
Case 1: [When both the strings are the exact same.]
Case 2: [When one of the characters is in the opposite case.]
Similar questions