-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathage_and_promedio.py
More file actions
32 lines (31 loc) · 823 Bytes
/
age_and_promedio.py
File metadata and controls
32 lines (31 loc) · 823 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
edad = int(input('Dame tu edad: '))
promedio = float(input('Dame tu promedio: '))
if edad < 6:
print('Kinder')
elif edad >= 6 and edad < 12:
print('Primaria')
if promedio >= 9.5:
print('Promedio aceptable')
else:
print('Promedio deficiente')
elif edad >= 12 and edad < 15:
print('Secundaria')
if promedio >= 9:
print('Promedio aceptable')
else:
print('Promedio deficiente')
elif edad >= 15 and edad < 18:
print('Bachillerato')
if promedio >= 8.5:
print('Promedio aceptable')
else:
print('Promedio deficiente')
elif edad >= 18 and edad < 23:
print('Universidad')
if promedio >= 8:
print('Promedio aceptable')
else:
print('Promedio deficiente')
else:
print('Profesionista')
print('Tu ya no estudias')