Skip to content

Instantly share code, notes, and snippets.

@jennz0r
Created May 20, 2019 23:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jennz0r/c7ec3de40ad5afa1aef76a0fd4b5309d to your computer and use it in GitHub Desktop.
Save jennz0r/c7ec3de40ad5afa1aef76a0fd4b5309d to your computer and use it in GitHub Desktop.
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