@ Introducing Python: Modern Computing in Simple Packages by Bill Lubanovic (No. 1292 / 12833)
Get an Item by Offset and Delete It by Using pop()
I've tried.
http://ideone.com/wWqImS
mylist = [ 'zundoko', 'zun', 'KIYOSHI', 'zun' ]
print(mylist.pop())
print(mylist.pop(1)*2)
print(mylist.pop(0))
print(mylist.pop())
result
Success time: 0 memory: 9024 signal:0
zun
zunzun
zundoko
KIYOSHI
Recommended Posts