Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Abhayparashar31/9388201c262428c35f2a30caf6fa5d75 to your computer and use it in GitHub Desktop.
Save Abhayparashar31/9388201c262428c35f2a30caf6fa5d75 to your computer and use it in GitHub Desktop.
num1 = int(input())
set1 = set(input().split())
num2 = int(input())
set2 = set(input().split())
print( len(set1 & set2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment