Print all the digits of a number.
Asked in the Round 1 DSA / Coding stage. Warm-up coding problem.
Write a function that takes a non-negative integer n and returns its digits in left-to-right order as a list of integers. Do not convert the number to a string.
def print_digits(n):
n: a non-negative integerndef print_digits(n):