I would like to understand why when I'm using the a=(with append) the result is none. why the var list is none.
a = ['a','b','b']
b = 'y'
a = a.append(b)
print (a) ---result none
I would like to understand why when I'm using the a=(with append) the result is none. why the var list is none.
a = ['a','b','b']
b = 'y'
a = a.append(b)
print (a) ---result none
append returns None.
If you didn't do the assignment, a would have the 'y' appended to it.