Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Sep 26th, 2012  |  syntax: Python  |  size: 0.43 KB  |  views: 28  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. convenios = {
  2.   'publico': 0.0,
  3.   'particular': 100.0,
  4. }
  5.  
  6. setores = {
  7.   'pediatria': 200.0,
  8.   'oncologia': 1000.0,
  9.   'geral': 100.0
  10. }
  11.  
  12. def calculaConsulta (convenio):
  13.     if convenio in convenios.keys():
  14.         return convenios[convenio]
  15.     raise Exception("convenio nao encontrado")
  16.  
  17.  
  18. def calculaPlantao(setor):
  19.     if setor in setores.keys():
  20.         return setores[setor]
  21.     raise Exception("setor nao encontrado")
clone this paste RAW Paste Data