Oops, this is my bad retyping something from a screenshot of a slide, so I couldn't copy paste. Thanks for the catch! It should read print(list_append([5, 7])), as the example below it does, and I've amended the text to reflect this.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great article. Makes sense.
However, it looks like you posted the
list_append()
examples without testing them beforehand, for example, these are equivalents:and you cannot call
.extend()
on an integer.Oops, this is my bad retyping something from a screenshot of a slide, so I couldn't copy paste. Thanks for the catch! It should read
print(list_append([5, 7]))
, as the example below it does, and I've amended the text to reflect this.