human
Give me a Python code to find sum and average of first n natural numbers given the following:
Write a function to find sum and average of first n natural numbers. Here is a solution in Python:
assistant
#Here is Python code to find sum and average of first n natural numbers.
 def sum_average(number):
 total = 0
 for value in range(1, number + 1):
    total = total + value
 average = total / number
 return (total,average)