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
Step: 1
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started