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

20th Jul 2017, 2:04 PM
paul mwengei
paul mwengei - avatar
5 odpowiedzi
+ 5
what do you need?
20th Jul 2017, 2:11 PM
Michael55555
Michael55555 - avatar
+ 3
Put the code in the description, not in title.
20th Jul 2017, 2:06 PM
Jakub Stasiak
Jakub Stasiak - avatar
+ 2
to make a huge list, you can do [0]*1000000 to use lists as stacks, use .pop and .append
21st Jul 2017, 3:44 PM
Supersebi3
Supersebi3 - avatar
+ 1
show me how please
20th Jul 2017, 2:10 PM
paul mwengei
paul mwengei - avatar
0
thanks
21st Jul 2017, 5:05 PM
paul mwengei
paul mwengei - avatar