str check digit python code example
Example 1: python digit string
import string
print(string.digits)
>> "0123456789"
Example 2: how to check if digit in int python
s = set(str(4059304593))
print('2' in s)
import string
print(string.digits)
>> "0123456789"
s = set(str(4059304593))
print('2' in s)