Contact: aviboots(AT)netvision.net.il
39,926 questions
51,859 answers
573 users
lst = [5, 7, 3, 0, 2, 1] lst.pop(-1) print(lst) ''' run: [5, 7, 3, 0, 2] '''
lst = [5, 7, 3, 0, 2, 1] del lst[-1] print(lst) ''' run: [5, 7, 3, 0, 2] '''