Question: import numpy as np # Read two sets of scores from user input scores 1 = input ( Enter the scores for the first
import numpy as np # Read two sets of scores from user input scores inputEnter the scores for the first set of students: split scores inputEnter the scores for the second set of students: split # Convert the input scores to integer values scores nparrayscores dtypeint scores nparrayscores dtypeint # Calculate the average of the two scores for each student averagescores scores scores # Count the number of average scores that are or higher count npcountnonzeroaveragescores # Output the average scores and the count printAverage scores:", averagescores printNumber of students who received and above:", count
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
