human
String Formatting in Python 3
assistant
Here is some code to format the variables `self.goals` and `self.penalties` using string formatting

"""({:d} goals, ${:d})""".format(self.goals, self.penalties)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.