a = [1, 2, 3]
b = a #copia a referência para o objeto
print(b is a) #é o mesmo objeto
print(b == a) #ele possuem o mesmo valor
b = a[:] #copiou o objeto
print(b is a) #são objetos diferentes
print(b == a) #mas os valores são os mesmos
print(1000 is 10**3) #são objetos diferentes
print(1000 == 10**3) #mas o valor é o mesmo
print("a" + "b" + "c" is "abc") #objetos diferentes
print("a" + "b" + "c" == "abc") #valores iguais
YSA9IFsxLCAyLCAzXQpiID0gYSAjY29waWEgYSByZWZlcsOqbmNpYSBwYXJhIG8gb2JqZXRvCnByaW50KGIgaXMgYSkgI8OpIG8gbWVzbW8gb2JqZXRvCnByaW50KGIgPT0gYSkgI2VsZSBwb3NzdWVtIG8gbWVzbW8gdmFsb3IKYiA9IGFbOl0gI2NvcGlvdSBvIG9iamV0bwpwcmludChiIGlzIGEpICNzw6NvIG9iamV0b3MgZGlmZXJlbnRlcwpwcmludChiID09IGEpICNtYXMgb3MgdmFsb3JlcyBzw6NvIG9zIG1lc21vcwpwcmludCgxMDAwIGlzIDEwKiozKSAjc8OjbyBvYmpldG9zIGRpZmVyZW50ZXMKcHJpbnQoMTAwMCA9PSAxMCoqMykgI21hcyBvIHZhbG9yIMOpIG8gbWVzbW8KcHJpbnQoImEiICsgImIiICsgImMiIGlzICJhYmMiKSAjb2JqZXRvcyBkaWZlcmVudGVzCnByaW50KCJhIiArICJiIiArICJjIiA9PSAiYWJjIikgI3ZhbG9yZXMgaWd1YWlz