You are viewing a single comment's thread. Return to all comments →
to make code a bit more consisten in basic set operation I creates simple function to read input:
def get_input(): return int(input()), set(map(int,input().split())) nEng, eng = get_input() nFre, fre = get_input() print (len(eng.symmetric_difference(fre)))
Seems like cookies are disabled on this browser, please enable them to open this website
Set .symmetric_difference() Operation
You are viewing a single comment's thread. Return to all comments →
to make code a bit more consisten in basic set operation I creates simple function to read input: