Advertisement
Oppaceted

Untitled

Feb 22nd, 2024
1,062
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.63 KB | None | 0 0
  1. from classes import *
  2.  
  3. N = int(input("Введите количество студентов: "))
  4. allAbiturients = []
  5.  
  6. for i in range(N):
  7.     allAbiturients.append(Abiturient(i))
  8.  
  9. teacher = Teacher(allAbiturients=allAbiturients)
  10. dictAbiturients = teacher.testAbiturients()
  11.  
  12. faculty = Faculty(name="МПУ", maxNumberOfStudents=12)
  13.  
  14. i = 1
  15. for element in faculty.returnPassedAbiturients(dictAbiturients=dictAbiturients):
  16.     print(f"{i:>2}) {dictAbiturients.get(element).name:<11}--{element:>3} --|")
  17.     i += 1
  18. print(f"Проходной балл: {faculty.returnPassedAbiturients(dictAbiturients=dictAbiturients)[::-1][0]}")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement