For this Question: Take 2 sets as inputs and find
a. Union of the 2 given sets in sorted manner
b. Intersection of the sets in sorted manner1st line:space- separated values for the first set
2nd line: Space- separated values for the second set1st line: Union of the sets in sorted order as a list
2nd line : Intersection of the sets in sorted order as a listInput:
ksn fdsnjfdiof nwin
ksn wjfwei jwhjdiew


Output
['fdsnjfdiof', 'jwhjdiew', 'ksn', 'nwin', 'wjfwei']
['ksn'], I have written this Solution Code: a=set()
b=set()
A=input().strip().split()
B=input().strip().split()
for i in A:
  a.add(i)
for i in B:
  b.add(i)
c=a.union(b)
d=b.intersection(a)
c=list(c)
c.sort()
d=list(d)
d.sort()
print(c)
print(d), In this Programming Language: Python, Now tell me if this Code is compilable or not?