CIT 486 final chapter7
1. For a two-dimensional array grades in which each row represents one stu-
dent's grades on several exams, we can calculate each student's average grade
with:
grades.mean(axis=1): True
2. If numbers is a five-element integer array, numbers * 2 is equivalent to:
numbers * [2, 2, 2, 2, 2]: True
3. The following creates an array from a -row-by- -column list:
np.array([[1, 2, 3], [4, 5, 6]]): two three
1. For a two-dimensional array grades in which each row represents one stu-
dent's grades on several exams, we can calculate each student's average grade
with:
grades.mean(axis=1): True
2. If numbers is a five-element integer array, numbers * 2 is equivalent to:
numbers * [2, 2, 2, 2, 2]: True
3. The following creates an array from a -row-by- -column list:
np.array([[1, 2, 3], [4, 5, 6]]): two three