Question: This uses python. Write a program that performs the following tasks (1) Create an empty set object my set1. (2) Add integer 1 into my
This uses python.

Write a program that performs the following tasks (1) Create an empty set object my set1. (2) Add integer 1 into my set1, using the addlargument) method (3) Add a list of strings 'a, b', 'ab, 1', into my set1, using the updatelargument) method. (4) Delete 'ab from my set1, using (5) Delete 'c' from my set1, using the discard(argument) method (6) Create another set object my set2, with the string 'abb1ab' as argument (7) Print out the updated sets my set1 and my set2 (8) Determine if my set2 is a subset of my set1, using the issubsetfargument) method or the
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
