How Python can help you learn ES6 Blog

added by JavaScript Kicks
6/6/2019 6:41:13 AM

711 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