Question: Write a Python program to initialize two separate sets and check if one set is a subset or superset of another set. If the subset

 Write a Python program to initialize two separate sets and check

Write a Python program to initialize two separate sets and check if one set is a subset or superset of another set. If the subset is found, delete all elements from that set. Display the result on the screen. Sample output: Set A {3, 4, 5} Set B {1, 2, 3, 4, 5, 6, 7, 8, 9} Set A is subset of Set B True Set B is subset of Set A False Set A is superset of Set B - False Set B is superset of Set A True Set A seto Set B {1, 2, 3, 4, 5, 6, 7, 8, 9) (20 marks

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!