Question: set _ a = sys . argv [ 1 : ] set _ b = [ ' apple ' , 'banana', 'mango', 'orange' ] The
seta sysargv:
setb apple 'banana', 'mango', 'orange'
The above seta is a listtype variable which contains words.
Your order may be different for the examples below because sets are unordered.
Create a program, commonset.py Your program should:
Find the common words between seta and setb
Print the output in a set format.
Example If the seta is apple 'banana', 'pear', 'grape' the program should print:
banana 'apple'
Example If the seta is mango 'mango', 'mango', 'pear', 'grape' the program should print:
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
