El ejercicio 22.3 da error | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
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 Respostas
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