Tesla Interview Question

Python coding: return the avg of an array with fixed size