non repeating

Solutions on MaxInterview for non repeating by the best coders in the world

showing results for - "non repeating"
Hannah
18 Jul 2018
1#take user input
2String = input('Enter the string :')
3for i in String:
4    #initialize a count variable
5    count = 0
6    for j in String:
7        #check for repeated characters
8        if i == j:
9            count+=1
10        #if character is found more than 1 time
11        #brerak the loop
12        if count > 1:
13            break
14    #print for nonrepeating characters
15    if count == 1:
16        print(i,end = " ")
similar questions
queries leading to this page
non repeating