MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

Grocery calculator.py:13–14  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

11# Methods = addToList, Total, Subtotal, returnList
12class GroceryList(dict):
13 def __init__(self):
14 self = {}
15
16 def addToList(self, item, price):
17 self.update({item: price})

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected