def test(e1,e2): print("\n") if (e1 == e2): print(e1,"equals",e2) else: print(e1,"does not equal",e2) if (e1 is e2): print(e1,"is the same thing as",e2) else: print(e1,"is not the same thing as",e2) #numbers a = 2 b = 2.0 c = 4 / 2 d = 5 // 2 print(a,b,c,d) test(a,b) test(a,c) test(a,d) test(b,c) # booleans bool1 = (1 == 2) bool2 = (2 == 3) test ( bool1, bool2) #strings x = "abcde" y = "abcde" z = "ab"+"cde" test(x,y) test(x,z) #lists list1 = [1,2,3,4] list2 = list1 list3 = [1,2,3,4] test(list1, list2) test(list1,list3) #tuples tuple1=("alpha",37.2) tuple2=tuple1 tuple3=("alpha",37.2) test(tuple1, tuple2) test(tuple1, tuple3)