If Array Is Not Empty Python Queue