Question: Python. Im trying to divide batting_hits and at_bats. Can someone help me ? # Program that displays the batting average for a baseball player player_name

Python. Im trying to divide batting_hits and at_bats. Can someone help me ?

# Program that displays the batting average for a baseball player player_name = input("What is the player's name? ") print("How many hits?" ) batting_hit = int(input(" ")) print("HOw many at-bats? ") at_bats = int(input(" ")) batting_average = (batting_hit/at_bats) print(player_name + " s batting average is " + batting_average)

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!