HackerRank Python - Set union Operation
The .union() operator returns the union of a set and the set of elements in an iterable.
Sometimes, the | operator is used in place of .union() operator, but it operates only on the set of elements in set.
Set is immutable to the .union() operation (or | operation).
- # Enter your code here. Read input from STDIN. Print output to STDOUT
- n = input()
- eng = set(map(int,input().split()))
- b = input()
- fre = set(map(int,input().split()))