<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def league_scores(self, total_data, time, show_datetime, use_12_hour_format):
 """Prints the data in a pretty format"""

        for match in total_data['matches']:
            self.scores(self.parse_result(match), add_new_line=not show_datetime)
            if show_datetime:
                click.secho('   %s' % Stdout.utc_to_local(match["utcDate"],
                                                          use_12_hour_format,
                                                          show_datetime),
                            fg=self.colors.TIME)
            click.echo()