python do something to every digit of a number code example Example: for each digit in number python for digit in str(n): print(int(digit))