Contact: aviboots(AT)netvision.net.il
39,971 questions
51,913 answers
573 users
import random lst = [4, 3, 6, 8, 1, 2, 7, 9, 5] print(lst) lst.pop(random.randrange(len(lst))) print(lst) lst.pop(random.randrange(len(lst))) print(lst) ''' run: [4, 3, 6, 8, 1, 2, 7, 9, 5] [4, 3, 8, 1, 2, 7, 9, 5] [4, 3, 8, 1, 7, 9, 5] '''