hello, I'm a beginner at python and I run this code:
and the answer is:
1 2 3 4 |
x = [ 1 , 2 , 3 , 4 ] print ( "x= " ,x) y = x.insert( 1 , 6 ) print ( "y= " , y) |
Output:x= [1, 2, 3, 4]
y= None
why?