Answer to Question #256483 in Python for rasi

Question #256483

 23. Given two strings,X and Y (length(x) >=1 ,length(y) <= 10000), find out if 'y' is contained in 'x'

  


1
Expert's answer
2021-11-01T01:58:14-0400
X = input("Enter string X: ")
Y = input("Enter string Y: ")


if Y in X:
    print("YES")
else:
    print("NO")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS