# list poppin'a=[1,2,3]print(a.pop())print(a.pop())print(a.pop())try:print(a.pop())exceptIndexError:print("IndexError raised")else:raiseAssertionError("No IndexError raised")# popping such that list storage shrinks (tests implementation detail of uPy)l=list(range(20))foriinrange(len(l)):l.pop()print(l)