Set .add()

Sort by

recency

|

994 Discussions

|

  • + 0 comments
    N = int(input())
    
    stamps = [ ((input())) for _ in range(N)]
    
    
    print(len(set(stamps)))
    
  • + 0 comments
    d = set()
    count = 0
    n = int(input())
    for i in range(n):
        c = str(input())
        d.add(c)
    print(len(d))
    
  • + 0 comments

    a = [input() for i in range(int(input()))] print(len(set(a)))

  • + 0 comments

    N = int(input()) country = set() for i in range(N): country.add(input()) print(len(country))

  • + 2 comments

    Your Smart Guide: Web, Cooling, Audio Deals & Gaming Perks

    Discover expert web services in Chennai, pocket-friendly tech recommendations, and handy game rewards—curated in one neat read.

    Build a High-Impact Website in Chennai

    Launching or revamping your online presence? A reliable website builder in Chennai can translate your brand’s goals into fast, responsive, and conversion-focused pages—from portfolios to full e-commerce flows. Expect modern design systems, SEO-ready structures, and scalable tech that grows with your business.

    tougher stages.