Create 9-averagegrades.py

Function takes a list and works out the grade average. First time using defined function within a function.