Python Stack Quiz: Question 6

Last Updated :
Discuss
Comments

Which operation is used to retrieve the top element of a stack without removing it?

top()

get()

view()

peek()

Share your thoughts in the comments