You are viewing a single comment's thread. Return to all comments →
n = int(input()) eng = set(map(int, input().split()))
m = int(input()) french = set(map(int, input().split()))
diff = eng.difference(french) print(len(diff))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .difference() Operation
You are viewing a single comment's thread. Return to all comments →
Enter your code here. Read input from STDIN. Print output to STDOUT
n = int(input()) eng = set(map(int, input().split()))
m = int(input()) french = set(map(int, input().split()))
diff = eng.difference(french) print(len(diff))