I have two lists given below
l1=[1,2,3,4]
l2=[5,6,7,8]
If i perform l1.extend(l2) and print(l1), output is [1,2,3,4,5,6,7,8]
as expected but if i assign it to a variable like b=l1.extend(l2)
and print(b) the output is None.
Can anyone explain this why it is so ?