python iterate each digit of a number mathematicaly code example Example: for each digit in number python for digit in str(n): print(int(digit))