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
Get step-by-step solutions from verified subject matter experts
