Write a function that outputs the variance given a list of integers.
Implement def variance(nums):, returning the population variance as a floating-point number. The input is non-empty, and population variance divides the sum of squared deviations by len(nums).
def variance(nums):