Set .add()

  • + 0 comments

    n= int(input()) print(len(list(set([input() for _ in range(n)]))))

    Simple two lines Code