>>> from teatre import costcomanda >>> teadic = {'PLATEA': [100, 40], 'ANF': [50, 30], 'LAT': [50, 20]} >>> costcomanda(teadic, ('PLATEA', 2)) 80 >>> costcomanda(teadic, ('LAT', 8)) 160 >>> costcomanda(teadic, ('PLATEA', 3)) 120 >>> costcomanda(teadic, ('ANF', 5)) 150