I am a bit confused about how I can add a variable to a list in python. I have looked at this post
and this was not very helpful. This is the code I have:
lst = [1, 2, 3]
something = 4
print(lst.append(something))
This for some reason returns none. Unsure if I am missing something. Any help would be grateful.