Program - illustrate the test for equality (==) vs. identity (is)


Topic: Program - illustrate the test for equality (==) vs. identity (is)

Solution

a = 'hello world!'
b = 'hello world!'
print('a is b,', a is b)
print('a == b,', a == b)



List all Python Programs