Advertisement
cardel

Grupo 75

May 5th, 2021
1,087
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.23 KB | None | 0 0
  1.  
  2. def promedioMaximo(x,y,z):
  3.     promedio = (x+y+z)/3
  4.     maximo = max(x,y,z)
  5.     salida = f"El promedio de x={x},y={y},z={z} es {promedio} y el máximo es {maximo}"
  6.     return salida
  7.  
  8. salida = promedioMaximo(2,3,8)
  9. print(salida)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement