Stacks: valid parentheses — Python practice — Live Code Tutor