Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cond = True
- print('|Evaluador de notas|\n')
- while cond==True:
- opcion = int(input('Opciones\n\n1. Evaluar\n0. Salir\n\n<opcion>: '))
- if opcion == 0:
- cond = False
- print('\nFin de la ejecucion\n')
- elif opcion == 1:
- nota = int(input('\nIngrese una nota entre 0 y 10: '))
- if nota>-1 and nota<3:
- r = 'Insuficiente\n'
- elif nota>2 and nota<5:
- r = 'Regular\n'
- elif nota>4 and nota<7:
- r = 'Bien\n'
- elif nota>6 and nota<9:
- r = 'Muy bien\n'
- elif nota>8 and nota<11:
- r = 'Sobresaliente\n'
- elif nota<0 or nota>10:
- r = 'Valor de nota fuera de rango!\n'
- print('\nEvaluacion: '+str(r))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement