python queue rear element code example Example: py list enqueue a = [1,2,3,4] # enqueue a = [0] + a >>> [0,1,2,3,4]