El ejercicio 22.3 da error | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

El ejercicio 22.3 da error

El compilador de la app resuelve con error el problema de los descuentos de matrícula

25th Dec 2021, 10:51 PM
Koji
7 ответов
0
22.3? De que curso? Podrías guardar y compartir el código en cuestión?
25th Dec 2021, 11:41 PM
CGM
CGM - avatar
0
Q. Exercise 22.3 gives an error The app compiler solves the problem of tuition discounts with error A. We dont know whats that problem and from which course it is from, edit this question and attach that problem with your try.
26th Dec 2021, 3:19 AM
NEZ
NEZ - avatar
0
Python Core course: practice 22.3. You need to comment or remove the first line, name=input() Comenta o borra la primer línea, la que dice name=input() Y la próxima aclara de que curso hablas, cuánto más información nos des, más fácil será ayudarte!
26th Dec 2021, 4:18 AM
CGM
CGM - avatar
0
Del curso Python Core
26th Dec 2021, 7:56 AM
Koji
0
Escribo el código:
26th Dec 2021, 7:57 AM
Koji
0
name = input() sem1_score = int(input()) sem2_score = int(input()) #tu código va aquí #nota=(sem1_score + sem2_score )/2 data= [sem1_score, sem2_score] nota= sum(data)/len(data) if (nota>=90 and nota <=100): print ("50") elif (nota>=80 and nota <=89): print ("30") elif (nota>=70 and nota <=79): print ("10") else: print ("0")
26th Dec 2021, 7:58 AM
Koji
0
Ya te dije, elimina la primera linea, name=input() otra cosita, No necesitas evaluar si es mayor que y menor que en cada if.. si no entro en el primero, ya sabes que es menor a 90, no hace falta que "preguntes" denuevo en el siguiente, lo mismo para el último if
26th Dec 2021, 3:01 PM
CGM
CGM - avatar