*And here I had though I'd grabbed the basic concepts*I know this might seem simple but don't know whats going on. Trying to make a while loop which adds to a list each time it goes round.
def squares():
y = 0
l = []
while y <= 4:
y = y + 2
d = l.append(y)
print(d)
So I would expect l = [2] the first time it entered the loop and then l = [2,4], which it seems to be doing in debugger but when it comes to printing the value it simply prints 'none'. Any ideas? Thanks