You are viewing a single comment's thread. Return to all comments →
def distinct_stamps(N,names): return len(set(names)) if __name__ == "__main__": N = int(input()) names= [] for _ in range(0,N): names.append(str(input())) result = distinct_stamps(N,names) print(result)
Seems like cookies are disabled on this browser, please enable them to open this website
Set .add()
You are viewing a single comment's thread. Return to all comments →