The code below depicts two cases, which compare identical strings. Why do they yield different results, even though both have strings which are identical within each case?
Case 1:
a = 'hello'
b = 'hello'
a is b
True
Case 2:
a = 'hello!'
b = 'hello!'
a is b
False
I was not able to find a reason as to why '!' would make a difference in a variable's truth value.