Created
May 13, 2020 13:00
-
-
Save meet100ni/f482471c0d9285789e95d85c6471e564 to your computer and use it in GitHub Desktop.
Set .symmetric_difference() Operation HackerRank Solution
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enter your code here. Read input from STDIN. Print output to STDOUT | |
""" | |
For more understanding: https://www.programiz.com/python-programming/methods/set/symmetric_difference | |
""" | |
# '_' is a variable and input().split() will separate input from the console | |
_, a = input(), set(input().split()) | |
_, b = input(), set(input().split()) | |
print(len(a.symmetric_difference(b))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment