Question: Python programming language In baseball, a pitchers earned run average, or ERA, is the number of runs the other team typically scores per nine innings

Python programming language

In baseball, a pitchers earned run average, or ERA, is the number of runs the other team typically scores per nine innings pitched. Write a function that accepts two arguments: the total number of earned runs allowed and the total number of innings pitched. The function should return the ERA, rounded to the nearest hundredth. For example, a pitcher who has pitched 91 innings and allowed 25 earned runs has an ERA of 2.47. The main() function should ask the user to enter the number of innings pitched and the number of earned runs, call the above function, and display the results. Python programming language

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!