filmov
tv
Append is EVIL - extend vs append in Python lists 🐍 #shorts
Показать описание
Append vs extend:
extend adds each element of list to another list
append adds all the elements as a single element to a list.
Append's behavior has caused me all sorts of problems over the years.
extend adds each element of list to another list
append adds all the elements as a single element to a list.
Append's behavior has caused me all sorts of problems over the years.