1129 Views
def fish_and_chips(): ingredients = ['fish', 'potatoes', 'batter'] print 'cooking %s together' % (', '.join(ingredients)) # cooking fish, potatoes, batter class Baking(object): def __init__(self, supplies): self.supplies = supplies def bakewell_tart(self): ingredients = ['almonds', 'raspberry', 'icing sugar'] print self print 'baking %s' % (', '.join(ingredients)) # Ok, onto some of the ways Python pushed me to learn more about ES6!
0 comments