Advertisement
Guest User

Var y Cond - Ej-10

a guest
Mar 31st, 2020
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.75 KB | None | 0 0
  1. cond = True
  2. print('|Evaluador de notas|\n')
  3. while cond==True:
  4.     opcion = int(input('Opciones\n\n1. Evaluar\n0. Salir\n\n<opcion>: '))
  5.     if opcion == 0:
  6.         cond = False
  7.         print('\nFin de la ejecucion\n')
  8.     elif opcion == 1:
  9.         nota = int(input('\nIngrese una nota entre 0 y 10: '))
  10.         if nota>-1 and nota<3:
  11.             r = 'Insuficiente\n'
  12.         elif nota>2 and nota<5:
  13.             r = 'Regular\n'
  14.         elif nota>4 and nota<7:
  15.             r = 'Bien\n'
  16.         elif nota>6 and nota<9:
  17.             r = 'Muy bien\n'
  18.         elif nota>8 and nota<11:
  19.             r = 'Sobresaliente\n'
  20.         elif nota<0 or nota>10:
  21.             r = 'Valor de nota fuera de rango!\n'
  22.        
  23.         print('\nEvaluacion: '+str(r))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement