SyntaxFix
Write A Post
Hire A Developer
Questions
you can use lst.pop() or del lst[-1]
lst.pop()
del lst[-1]
pop() removes and returns the item, in case you don't want have a return use del
pop()
del