I was trying to execute some statements in the console in Pycharm using the 'is' operator to get to know its functions better, however I ran across something I couldn't find an explanation for. I didn't know why I was getting all these warnings but then the answer is displayed. Because I still can't post an image, here is what I wrote:
x ='abc'
y = 'abc'
print(x is y)
print(x is 'abc')
It displayed the following for the second print statement:(:1: SyntaxWarning: "is" with a literal. Did you mean "=="?) for five times before displaying (True)
Any help is appreciated. Thank you!