I've set two variables to the value 'qwerty' in Python. In a conditional expression
which fails i.e. var1 is var2 , but when I use var1 == var2 and the output comes True.
But in my Python interpreter the same succeeds:
>>> s5 = 'public'
>>> s6 = 'public'
>>> s5 is s6
True
Can someone tell me what mistakes I am doing?
Select the correct answer from above options