List As Stack In Python Code Editor