Contact: aviboots(AT)netvision.net.il
39,966 questions
51,908 answers
573 users
st = {"a", "b", "c", "d", "e", "f", "g"} st.discard("b") print(st) ''' run: {'a', 'c', 'f', 'd', 'g', 'e'} '''
st = {"a", "b", "c", "d", "e", "f", "g"} st.remove("a") print(st) ''' run: {'c', 'd', 'e', 'g', 'b', 'f'} '''
st = {"python", "c++", "java", "php"} print(st) st.pop() print(st) ''' run: {'python', 'java', 'php', 'c++'} {'java', 'php', 'c++'} '''