← Back

Function Challenge 4 - Average


Introduction

This function returns the average given a list of numbers.

Challenge Tasks

  1. Create a console project named FunctionChallenge4Average.
  2. Implement a function with the given signature:

C#

double Average(List<double> numbers)

Python

def average(numbers)