Write a python program for check the given digit is repeated how many times in the given number
N = input("Enter N: ")
search = input("What number are you looking for? ")
number_str = list(N)
count = 0
for i in range(len(number_str)):
if number_str[i] == search:
count += 1
print(count)
Comments
Leave a comment