i want to know how to remove a digit from an integer and place that digit at the beginning of the number. I know how to do it in a list but am not sure how to do in without creating a list.
eg.
digits(123)
>>>312