Generation

generate functionFri, 26 May 2023

INGRESAR 5 NOTAS Y CALCULAR EL PROMEDIO DE LAS 3 NOTAS MAS ALTAS.

def promedio_notas (): a = int(input("ingrese nota 1")) b = int(input("ingrese nota 2")) c = int(input("ingrese nota 3")) d = int(input("ingrese nota 4")) e = int(input("ingrese nota 5")) if a > b and a > c and b > d and b > e and c > d and c > e: promedio = (a + b + c) / 3 elif a > b and a > c and a > d and a > e and b > c and b > e: promedio = (a + b + d) / 3 elif a > b and a > c and a > d and a > e and b > c and b > d: promedio = (a + b + e) / 3 elif a > b and a > c and a > d and a > e and c > b and c > d: promedio = (a +

Want to kickstart your project?Use the new AI Studio to create your code