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))
- #for j in allAbiturients:
- #print(j.ID, end = ", ")
- #print()
- teacher = Teacher(allAbiturients=allAbiturients)
- dictAbiturients = teacher.testAbiturients()
- '''for element in dictAbiturients:
- print(element)
- for element in dictAbiturients.keys():
- print(element)
- for element in dictAbiturients.values():
- print(element)'''
- faculty = Faculty(name="МПУ", maxNumberOfStudents=30)
- #print(list(dictAbiturients.keys()))
- #print(faculty.returnPassedAbiturients(dictAbiturients=dictAbiturients))
- for element in faculty.returnPassedAbiturients(dictAbiturients=dictAbiturients):
- print(dictAbiturients.get(element).ID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement