Answer to Question #299749 in Python for jrr

Question #299749

Found Ya!

by CodeChum Admin

Let's now try finding a certain digit into an integer! Come and join in on the fun and code with me!


Instructions:

  1. Input two integers in one single line. The first inputted integer must be within 0-9 only.
  2. Using loops, identify if the first inputted integer (0-9) is present in the second inputted integer. If it is found, print "Yes". Otherwise, print "No".

Input

A line containing two integers separated by a space.

1·231214238

Output

A line containing a string.

Yes




1
Expert's answer
2022-02-19T02:38:53-0500
line = input()
words = line.split()
if words[0] in words[1]:
    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