0 of 8 questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
Your time:
Time has elapsed
Good work attempting the practice problems!
Please leave a comment below if you require any clarifications or send an email to [email protected] if you have any comments about this quiz.
You have completed this lesson!
Write a Python program to create a set?
You can use the numbers 1,2,3,4.
This response will be reviewed and graded after submission.
Write a Python program to iterate over a set?
Given: set(0, 1, 2, 3, 4, 5)
This response will be reviewed and graded after submission.
Write a Python program to add member(s) in a set?
Add the string “Red” to a set.
This response will be reviewed and graded after submission.
Write a Python program to remove random item(s) from set?
You can use the set: 3, 14, 53, 44, 25
This response will be reviewed and graded after submission.
Write a Python program to remove an item from a set if it is present in the set?
You can use a set with the elements: 0, 1, 2, 3, 4, 5
Try to remove the number 4 from it.
This response will be reviewed and graded after submission.
Write a Python program to create an intersection of sets?
Given:
([“green”, “blue”])
([“blue”, “yellow”])
This response will be reviewed and graded after submission.
Write a Python program to create a union of sets?
Given:
([“green”, “blue”])
([“blue”, “yellow”])
This response will be reviewed and graded after submission.
Write a Python program to create set difference?
Given:
setx = set([“apple”, “mango”])
sety = set([“mango”, “orange”])
This response will be reviewed and graded after submission.