New Jobs Updates
May 29, 2025 at 05:10 AM
*Correct Answer: C. 20* Let’s go step-by-step: stack = [] → empty stack stack.append(5) → stack becomes [5] stack.append(10) → stack becomes [5, 10] stack.pop() → removes 10 → stack becomes [5] stack.append(20) → stack becomes [5, 20] print(stack[-1]) → prints top element, which is 20 *React with ❤️ if you got it right!*
❤️ 8

Comments