@
aldeka Nope. It's not pusheen & popeen. It's shifting & unshifting. push adds an element to the end of an array, pop removes an element from the end of an array. Unshift adds an a item to the top of an array, and shift removes the element from the top of an array.
shift:
developer.mozilla.org/en-US/do…uhshift:
developer.mozilla.org/en-US/do…push:
developer.mozilla.org/en-US/do…pop:
developer.mozilla.org/en-US/do…In python list.pop(0) will remove an item from the top of a list, but list.insert(<index>, <item>) will insert an item and list.append(<item) will add it to the end of the list.
I could go sets in python, but I think you get the jist. This just isn't pushing & poping.