Advertisement
GastonPalazzo

Bucles_1 - Ej-8

Aug 31st, 2020
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.36 KB | None | 0 0
  1. #imports
  2. from random import randint
  3.  
  4. #main
  5. print('\n|Ej 8|')
  6.  
  7. notas=[]
  8. for _ in range(14):
  9.     notas.append(randint(1,10))
  10.  
  11. print(f'\nNotas numericas -> {notas}')
  12.  
  13. for i in notas:
  14.     if i<7:
  15.         notas[notas.index(i)]='Suspenso'
  16.     else:
  17.         notas[notas.index(i)]='Aprobado'
  18.  
  19. print(f'\nNotas alfa -> {notas}')
  20.  
  21. print('\nFin de la ejecucion!\n')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement