IT 117: Intermediate Scripting
Class 09 Ungraded Quiz
-
Write a
for
loop that prints the elements in set s1.
-
Write a Python expression to see if the set s1
contains 5.
-
Write a Python expression to see if the set s1
DOES NOT contain 12.
-
Write a Python expression that returns the union of the sets
A and B.
-
Write a Python expression that returns the intersection of the sets
A and B.
-
Write a Python expression that returns the difference between the sets
A and B.
-
Is the difference between the sets A and
B the same as the difference between the sets
B and A
-
What does the clear method do?
-
Write a Python expression that returns the largest element in the set A.
-
Write a Python expression that returns the smallest element in the set A.