Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- convenios = {
- 'publico': 0.0,
- 'particular': 100.0,
- }
- setores = {
- 'pediatria': 200.0,
- 'oncologia': 1000.0,
- 'geral': 100.0
- }
- def calculaConsulta (convenio):
- if convenio in convenios.keys():
- return convenios[convenio]
- raise Exception("convenio nao encontrado")
- def calculaPlantao(setor):
- if setor in setores.keys():
- return setores[setor]
- raise Exception("setor nao encontrado")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement