I'm newbie to python. I'm trying to find matching digits in a string from a given number. I have tried the following code:
st=input("Enter a string")
no=int(input("Enter a number"))
for i in range(len(st)):
while no>0:
rem=no%10
if rem == st[i]:
print(rem)