3 ms·
Great resource >> <list>.append(<el>) # Or: <list> += [<el>] Not a fan of the += syntax in this instance - seeing .append instantly lets me know I'
by siquick 7y ago
Great resource
>> <list>.append(<el>) # Or: <list> += [<el>]
Not a fan of the += syntax in this instance - seeing .append instantly lets me know I'm dealing with a list whereas += can be used on almost anything