Contains

Report a typo

Implement contains, which takes non-negative integers aa and bb. It returns whether all the digits of aa also appear in order among the digits of bb. Given a=357a = 357 and b=12345678b = 12345678 the numbers in aa appear sequentially in the number bb, so the function returns True

There are many ways to solve this task, but please try to solve using recursion.

Sample Input 1:

357 
12345678

Sample Output 1:

True
Write a program in Python 3
def contains(a, b):
pass
a = int(input())
b = int(input())
print(contains(a, b))
___

Create a free account to access the full topic