Advertisement
Guest User

Untitled

a guest
Nov 11th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. #Questão09
  2. print("Questão 09")
  3. def escola():
  4. numAlunos=int(input("Digite a quantidade de alunos: "))
  5. RE=[]
  6. notas=[]
  7. med=[]
  8. acum=0
  9. x=0
  10. y=0
  11. z=0
  12. cnt=1
  13. subst=0
  14. while(x<numAlunos):
  15. RE.append("")
  16. RE[x]=int(input("Digite o RE do aluno: "))
  17. subst=float(input("Digite a nota do aluno: "))
  18. notas.append(subst)
  19. x+=1
  20. y+=1
  21. acum+=subst
  22. while(cnt<=3):
  23. subst=float(input("Digite a nota do aluno: "))
  24. notas.append(subst)
  25. acum+=subst
  26. y+=1
  27. cnt+=1
  28. cnt=1
  29. med.append("")
  30. med[z]=acum/4
  31. z+=1
  32. percRE=0
  33. percNt=0
  34. while(percRE<numAlunos):
  35. bo=False
  36. contar=1
  37. print("<---------------------------------------------------->")
  38. print("RE do aluno:",RE[percRE])
  39. print("Média do aluno:",med[percRE])
  40. if(med[percRE]>=7):
  41. print("Situação: Aprovado!")
  42. else:
  43. print("Situação: Exame!")
  44. percRE+=1
  45. while(bo==False):
  46. if(contar==4):
  47. bo=True
  48. print("Nota",contar,"do aluno:",notas[percNt])
  49. contar+=1
  50. percNt+=1
  51. print("<---------------------------------------------------->")
  52. escola()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement