Set .add()

  • + 0 comments

    n=int(input()) countries=set() for i in range(n): name=input() countries.add(name) print(len(countries))