I am looking to extend a list and have the following
ListA = list(x)
ListB = list(y)
ListC = ListA.extend(ListB)
This gives ListC as having <type 'NoneType'> and I am wondering why this isn't just a list as well.
Thanks!
extend, like many other list operations, operates in-place and returns None. ListA is modified with the extra elements.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With