Metoda listy: Dodatek lista vs rozszerzenie

# list append vs extend

e = [1,2,3]
e.append(["a",[8]])
print(e)
# [1, 2, 3, ['a', [8]]]

u = [1,2,3]
u.extend(["a",[8]])
print(u)
# [1, 2, 3, 'a', [8]]
Sore Sloth