Created
May 20, 2019 23:18
-
-
Save jennz0r/c7ec3de40ad5afa1aef76a0fd4b5309d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | |
# <__main__.Baking object at 0x10d6e0510> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment