rb=input().strip()
n=int(input())
dic={};li=[]
for i in rb:
if i not in dic:
dic[i]=1
else:
dic[i]+=1
if i not in li:
li.append(i)
if len(li)==n:
break
for i in rb:
if i in li:
print(i,end="")
rb=input().strip()
n=int(input())
dic={};li=[]
for i in rb:
if i not in dic:
dic[i]=1
else:
dic[i]+=1
if i not in li:
li.append(i)
if len(li)==n:
break
for i in rb:
if i in li:
print(i,end="")
Hi friends....
In this blog I'm going to give answer for daily test skillrack program, daily challenges and kick start programs and give some coding techniques.
It'll be helpful for u sure and make it usefull
Learn More →
0 Comments