Faulty Keyboard Codevita 9 Solution 2020

Faulty Keyboard Codevita 9 Solution

Page Contents

Python Code :

p=input(“”)
q=input(“”)
p=list(p.split(” “))
q=list(q.split(” “))
for t in range(0,len(q)-1):
c=[0 for i in range(t,len(q))]
for i in p:
for j in range(len(q)):
k=0
while(k1): m2=c.index(m1)
for i in range(m2,len(c)):
if(c[i]==m1):
if(ord(q[i])<ord(q[m2])):
m2=i
else: m2=c.index(m1)
q[m2],q[t]=q[t],q[m2]
print(“”.join(q)) 
 

Codevita Season 9 All Questions Solutions

Listed Here :

Leave a Comment

close
error: Content is protected !!