Mar-22-2018, 01:13 PM
Hi friends can anyone explain this for me
[python]
for i in range(1000):
l = l + [i]
appends the value of i in the list l ???
def test1(): l = [] for i in range(1000): l = l + [i]how this statement
[python]
for i in range(1000):
l = l + [i]
appends the value of i in the list l ???