lista1 = [1, 2, 3]
lista1.append([4, 5])
print lista1
# resultado: [1, 2, 3, [4, 5]]
lista2 = [1, 2, 3]
lista2.extend([4, 5])
print lista2
# resultado: [1, 2, 3, 4, 5]
lista3 = [1, 2, 3]
lista3.append(4)
print lista3
# resultado: [1, 2, 3, 4]
# nao eh possivel fazer:
# lista4 = [1, 2, 3]
# print lisa4.extend(4)
bGlzdGExID0gWzEsIDIsIDNdCmxpc3RhMS5hcHBlbmQoWzQsIDVdKQpwcmludCBsaXN0YTEKIyByZXN1bHRhZG86IFsxLCAyLCAzLCBbNCwgNV1dCgpsaXN0YTIgPSBbMSwgMiwgM10KbGlzdGEyLmV4dGVuZChbNCwgNV0pCnByaW50IGxpc3RhMgojIHJlc3VsdGFkbzogWzEsIDIsIDMsIDQsIDVdCgpsaXN0YTMgPSBbMSwgMiwgM10KbGlzdGEzLmFwcGVuZCg0KQpwcmludCBsaXN0YTMKIyByZXN1bHRhZG86IFsxLCAyLCAzLCA0XQoKIyBuYW8gZWggcG9zc2l2ZWwgZmF6ZXI6CiMgbGlzdGE0ID0gWzEsIDIsIDNdCiMgcHJpbnQgbGlzYTQuZXh0ZW5kKDQpCg==
[1, 2, 3, [4, 5]]
[1, 2, 3, 4, 5]
[1, 2, 3, 4]