SyntaxFix
Write A Post
Hire A Developer
Questions
To delete the last element from the list just do this.
a = [1,2,3,4,5] a = a[:-1] #Output [1,2,3,4]