x=input().strip()
z=input().strip()
t=len(x)
for i in range(1,t):
p=x[:i]+z[i:]
pp=z[:i]+x[i:]
if p==p[::-1] or pp==pp[::-1]:
print('YES')
exit()
print('NO')
x=input().strip()
z=input().strip()
t=len(x)
for i in range(1,t):
p=x[:i]+z[i:]
pp=z[:i]+x[i:]
if p==p[::-1] or pp==pp[::-1]:
print('YES')
exit()
print('NO')
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