I have following code:
myList = [1,2,3,4,5]
result = []
test = [result.append(i) for i in myList]
Whose output of test is:
[None, None, None, None, None]
I would like to know why, since for example:
test = [print(i) for i...
asked by
25.05.2016 / 19:51