Question: In Python, string 1 = Mary and string 2 = mary and then the expression string 1 . upper ( ) = = string 2

In Python, string1= "Mary" and string2= "mary" and then the expression string1.upper()== string2 will return False. Is it correct or not?
If you think it is incorrect, please provide your solution to correct it in English. Note that the values of string 1 and 2 cant be modified.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!