Set .add()

  • + 0 comments

    code

    a=int(input()) #total number of country stamps b=set() #input taking as set because it removes duplicate values for i in range(a): c=input() #taking country names as inputs. b.add(c) #appending country names to set print(len(b)) #obtaning length of set.**