[Solved] How to determine whether the same digits appear in two integers? [closed]
To check each digit you need to convert these number in string-object and then count each digit from other number which result 0 or some finite number and then using all we can check that all digit is present their or not. Check out this code: def same_digits(a: int, b: int)->bool: cond1 = all([str(b).count(i) for … Read more