Usuario:Damaya59/Ejercicio 18
Apariencia
#CONTRATO: operaciones (real,real,real→real)
#PROPOSITO: obtener resultados de diferentes operaciones.
#DEFINICION:
def operaciones (a,b,c):
if c==1 :
J=a+b
return J
ëlif c==2:
h=a*b
return h
ëlif c==3:
i=a/b
return i
else :
print "error"
#EJEMPLO: operaciones (1,2,3), debe dar 0.5
print calificacion (1,2,3)