0
#! python # huge list making nn=1000000 a = [] i=0 while i #! python # Using Lists as Stacks stack = [3, 4, 5] stack.append(6) stack.append(7) print stack x=stack.pop() print "popped ",x print stack x=stack.pop() print "popped ",x x=stack.pop() print "popped ",x print stack
5 Respuestas
+ 5
what do you need?
+ 3
Put the code in the description, not in title.
+ 2
to make a huge list, you can do [0]*1000000
to use lists as stacks, use .pop and .append
+ 1
show me how please
0
thanks