-
Lenguaje
Python
-
Descripción
Leer 3 notas y calcular el promedio, además enviar mensaje si aprobó o no. La nota de aprobación es 7.0
1
2
3
4
5
6
7
8
9
10
11
12
13
2
3
4
5
6
7
8
9
10
11
12
13
import os
nota_1 = float (input ('Ingresa el valor de nota 1: '))
nota_2 = float (input ('Ingresa el valor de nota 2: '))
nota_3 = float (input ('Ingresa el valor de nota 3: '))
promedio=(nota_1+nota_2+nota_3)/3
if promedio<7:
print ('Reporbado')
else:
print ('Aprobado')
print ('Valor de promedio: ' + repr (promedio))
print ()
os.system ('pause')
nota_1 = float (input ('Ingresa el valor de nota 1: '))
nota_2 = float (input ('Ingresa el valor de nota 2: '))
nota_3 = float (input ('Ingresa el valor de nota 3: '))
promedio=(nota_1+nota_2+nota_3)/3
if promedio<7:
print ('Reporbado')
else:
print ('Aprobado')
print ('Valor de promedio: ' + repr (promedio))
print ()
os.system ('pause')