I just started python and I understand that when you set a variable equal to a object type like a string, it will make them equivalent but I want to know why is 'abc' == 'abc' True, does it check the memory location of both strings and see that they have the same location? Or does python check the actual inside of the string to see if each character matches the other?
I know this is a basic python question and I understand why the code outputs the results we see, but I want to know how python checks equality when you are just working with data types with the same construct.
'abc' == 'abc' #Output is True
'ab' == 'abc' #Output is False