check the second digit value of any integer python code example Example: for each digit in number python for digit in str(n): print(int(digit))