check if striing is digit python code example Example: python digit string import string print(string.digits) >> "0123456789"