Ayuda
Publicado por hideki (4 intervenciones) el 06/12/2021 06:40:59
Alguien me puede ayudar en este codigo, lo que deveria hacer es poner la cantidad de alumnos por salon los codigos de cada uno, sus notas, promedio y ponerlo en un .txt
def salon_uno(x):
alumnosuno= []
for i in range(n):
codigo = int(input("Ingrese el codigo del alumno: "))
nota1 = float(input("Ingrese la nota 1 del alumno: "))
nota2 = int(input("Ingrese la nota 2 del alumno: "))
nota3 = float(input("Ingrese la nota 3 del alumno: "))
return alumnouno
def salon_dos(y):
alumnosdos = []
for i in range(n):
codigo = int(input("Ingrese el codigo del alumno: "))
nota1 = float(input("Ingrese la nota 1 del alumno: "))
nota2 = float(input("Ingrese la profe soy cabro del alumno: "))
nota3 = float(input("Ingrese la nota 3 del alumno: "))
return alumnosdos
def salon_tres(z):
alumnostres = []
for i in range(n):
codigo = int(input("Ingrese el codigo del alumno: "))
nota1 = float(input("Ingrese la nota 1 del alumno: "))
nota2 = float(input("Ingrese la nota 2 del alumno: "))
nota3 = float(input("Ingrese la nota 3 del alumno: "))
return alumnostres
def main():
x = int(input("Ingrese cuantos alumnos hay en el salon A: "))
y= int(input("Ingrese cuantos alumnos hay en el salon B: "))
z = int(input("Ingrese cuantos alumnos hay en el salon C: "))
salon_A(A)
salon_B(B)
salon_C(C)
if name=="main":
main()
def salon_uno(x):
alumnosuno= []
for i in range(n):
codigo = int(input("Ingrese el codigo del alumno: "))
nota1 = float(input("Ingrese la nota 1 del alumno: "))
nota2 = int(input("Ingrese la nota 2 del alumno: "))
nota3 = float(input("Ingrese la nota 3 del alumno: "))
return alumnouno
def salon_dos(y):
alumnosdos = []
for i in range(n):
codigo = int(input("Ingrese el codigo del alumno: "))
nota1 = float(input("Ingrese la nota 1 del alumno: "))
nota2 = float(input("Ingrese la profe soy cabro del alumno: "))
nota3 = float(input("Ingrese la nota 3 del alumno: "))
return alumnosdos
def salon_tres(z):
alumnostres = []
for i in range(n):
codigo = int(input("Ingrese el codigo del alumno: "))
nota1 = float(input("Ingrese la nota 1 del alumno: "))
nota2 = float(input("Ingrese la nota 2 del alumno: "))
nota3 = float(input("Ingrese la nota 3 del alumno: "))
return alumnostres
def main():
x = int(input("Ingrese cuantos alumnos hay en el salon A: "))
y= int(input("Ingrese cuantos alumnos hay en el salon B: "))
z = int(input("Ingrese cuantos alumnos hay en el salon C: "))
salon_A(A)
salon_B(B)
salon_C(C)
if name=="main":
main()
Valora esta pregunta


0