python check digits of 5 code example Example: for each digit in number python for digit in str(n): print(int(digit))