Write a program to Remove the last element from the stack


Topic: Write a program to 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