[Tutor] Append to list
rck.learn at gmail.com
Wed May 9 13:56:45 EDT 2018
I’m having trouble understanding the following behavior and would greatly appreciate any insight.
l = [1,2,3,4]
for i in range(l):
My confusions is the output for b. I don’t understand why it’s empty. I’m expecting for b to equal [[1,2,3,4], [2,3,4], [3,4], ].
More information about the Tutor