Program - Remove the last element from the stack


Topic: Program - Remove the last element from the stack

Solution

s = [1,2,3,4]
print(f"last element from the stack:{s.pop()}")



List all Python Programs