You are viewing a single comment's thread. Return to all comments →
n=int(input()) n_student=set(map(int, input().split())) b=int(input()) b_student=set(map(int, input().split())) student_difference = n_student - b_student print(len(student_difference))
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 →
n=int(input()) n_student=set(map(int, input().split())) b=int(input()) b_student=set(map(int, input().split())) student_difference = n_student - b_student print(len(student_difference))