Return the sum modulo 10 from an array of integers.
Implement sum_mod_10(nums), where nums is a non-empty list of integers. Return the remainder of the total sum divided by 10. The result should follow Python's modulo behavior, so it is always an integer from 0 through 9.
Input: A list of integers.
Output: One integer representing sum(nums) % 10.
def sum_mod_10(nums):