how to set number of digits for an int in python code example Example: for each digit in number python for digit in str(n): print(int(digit))