>>>name = "lucy"
>>>name is "lucy"
>>>True
>>>name=input()
lucy
>>>name is "lucy"
False
I know that is
checks for object identity. But isn't the object identity of name and "lucy" same here?
Also, why does assigning "lucy" to name results as True, whereas entering "lucy" as input and then assigning it to name results in False?