original_docstring: This function allows the user to type in a day as a string and the function will print out the statistics
      relating to the coach arrivals on that day
docstring: This function allows the user to type in a day as a string and the function will print out the statistics
  relating to the coach arrivals on that day
docstring_tokens: This function allows the user to type in a day as a string and the function will print out the statistics relating to the coach arrivals on that day
code: def view_day_statistics():
      global weeks
      global school_coaches
      """This function allows the user to type in a day as a string and the function will print out the statistics
      relating to the coach arrivals on that day"""
      day = input_day()
      late_coaches = []
      for label, coach in school_coaches.items():
          arrival = coach.get_arrival_time(day)
          if arrival < 0:
              late_coaches.append((label, arrival))
      if late_coaches:
          print("On", day, "the following coaches were late:")
          for coach in late_coaches:
              if coach[1] < -1:
                  print("Coach", coach[0], ":", coach[1] * -1, "minutes late")
              else:
                  print("Coach", coach[0], ":", coach[1] * -1, "minute late")
      else:
          print("There were no late coaches on this day")
code_tokens: def view_day_statistics ( ) : global weeks global school_coaches day = input_day ( ) late_coaches = [ ] for label , coach in school_coaches . items ( ) : arrival = coach . get_arrival_time ( day ) if arrival < 0 : late_coaches . append ( ( label , arrival ) ) if late_coaches : print ( "On" , day , "the following coaches were late:" ) for coach in late_coaches : if coach [ 1 ] < - 1 : print ( "Coach" , coach [ 0 ] , ":" , coach [ 1 ] * - 1 , "minutes late" ) else : print ( "Coach" , coach [ 0 ] , ":" , coach [ 1 ] * - 1 , "minute late" ) else : print ( "There were no late coaches on this day" )
short_docstring: This function allows the user to type in a day as a string and the function will print out the statistics
  relating to the coach arrivals on that day
short_docstring_tokens: This function allows the user to type in a day as a string and the function will print out the statistics relating to the coach arrivals on that day
comment: """This function allows the user to type in a day as a string and the function will print out the statistics
      relating to the coach arrivals on that day"""