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