Extend is a method of list, which modifies it but doesn’t return self (returning None instead). If you need the modified value as the expression value, use +, as in [2]+[].
Extend is a method of list, which modifies it but doesn’t return self (returning None instead). If you need the modified value as the expression value, use +, as in [2]+[].