python function take number and digit return how many code example Example: for each digit in number python for digit in str(n): print(int(digit))