Answers for "program to implement stack for book details(book no, book name). implement push and display operation"

1

program to implement stack for book details(book no, book name). implement push and display operation

def push(Books):
	Stack.append(Books)
	print 'Element:', Book, 'inserted successfully'
def pop():
	if Stack == []:
		print('Stack is empty!')
	else:
		print('Deleted element is',Stack.pop())
Posted by: Guest on February-24-2021

Browse Popular Code Answers by Language