Posts by Elias teixeira • 23 points
1 post
-
2
votes1
answer613
viewsQ: Count how many occurrences of one number there are in another, recursively
Using Python, write a recursive function that determines how many times a number k 2-digit occurs in a natural number n. For example, the number 21 occurs twice in 2135219877. The problem with my…