Advertisement
Vermiculus

Untitled

Apr 7th, 2012
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.44 KB | None | 0 0
  1. def checkIngredient(self, statement):
  2.     """Checks to see if <statement> contains a valid ingredient.
  3.    
  4.     >>> self.ingredients = {"curry":("wet", 40), "bacon":("dry", None)}
  5.     {"curry":("wet", 40), "bacon":("dry", None)}
  6.     >>> self.checkIngredient("Put the curry into the mixing bowl")
  7.     "curry"
  8.     >>> self.checkIngredient("Put the bacon into the mixing bowl")
  9.     None
  10.     >>> self.checkIngredient("Put the poop into the mixing bowl")
  11.     (Raises exception)
  12.     """
  13.     pass
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement