Guest User

Untitled

a guest
Apr 26th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. def print_scoreboard(home_team, home_score, away_team, away_score, inning, inning_number, balls, strikes, outs):
  2. print('Game Scoreboard:')
  3. print('Home: {home_team} - {home_score}'.format(home_team=home_team, home_score=home_score))
  4. print('Away: {away_team} - {away_score}'.format(away_team=away_team, away_score=away_score))
  5. print('Inning: {inning_number}/{inning}'.format(inning=inning, inning_number=inning_number))
  6. print('Balls: {balls} / Strikes: {strikes} / Outs {outs}'.format(balls=balls, strikes=strikes, outs=outs))
  7.  
  8.  
  9. inning = 'bottom'
  10. inning_number = 7
  11. balls = 1
  12. strikes = 2
  13. outs = 2
  14. home_team = 'Upper Marlboro Giants'
  15. home_score = 10
  16. away_team = 'Rockville Snails'
  17. away_score = 3
  18.  
  19. print_scoreboard(home_team, home_score, away_team, away_score, inning, inning_number, balls, strikes, outs)
Add Comment
Please, Sign In to add comment