Skip to content

Instantly share code, notes, and snippets.

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