Diff Between Stack And Queue Implementation In Python Using And In If Statement