Question: Part C: Write a Python program that: Greets the user with the name entered for Part A . Asks the user to enter a set
Part C:
Write a Python program that:
Greets the user with the name entered for Part
Asks the user to enter a set of text letters numbers andor symbols of at least characters.
Test to make sure the string is at least characters, if not, it should display a message about following instructions and ask for another set using a loop.
Asks the user to enter another set of text letters numbers andor symbols of at least characters.
Test to make sure the string is at least characters, if not, it should display a message about following instructions and ask for another set using a loop.
Once both sets are entered, ask the user what they want to do with the sets and use ifelif...else statements to call the corresponding block of code:
Determine if the sets are disjointed
Determine if one set is the subset of the other set
Determine if one set is a proper subset of the other set
Determine if one set is the superset of the other set
Determine if one set is a proper superset of the other set
Determine the union of the sets
Determine the intersection of the sets
Determine the difference of the sets
Replace one set with different values
Display the result from Part
Continue looping until the user decides to end the program using a sentinel value user input that ends the loop
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
