Sets Flashcards
1
Q
A collection of unique elements, what is this?
A
A set
2
Q
How do you create a set?
A
{1,2,3}
Curly brackets w/ no colon just elements
3
Q
Will a set return repeated elements?
A
No
4
Q
How would you add an element to this set?
a = {1,2,3,4}
A
a.add()