>>> l = list(range(1,5)) >>> l [1, 2, 3, 4] >>> l.pop() 4 >>> l [1, 2, 3]
for k, v in listDict.items(): v.pop()
D={1:'a',2:'b',3:'c'} x=D.popitem() print(D,x) >>>{1:'a',2:'b'} (3,'c') #x is the removed item, D is the rest of the dict