Advertisement
Oppaceted

main

Feb 22nd, 2024
1,012
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.82 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.     #for j in allAbiturients:
  9.         #print(j.ID, end = ", ")
  10.     #print()
  11.  
  12. teacher = Teacher(allAbiturients=allAbiturients)
  13. dictAbiturients = teacher.testAbiturients()
  14.  
  15. '''for element in dictAbiturients:
  16.    print(element)
  17. for element in dictAbiturients.keys():
  18.    print(element)
  19. for element in dictAbiturients.values():
  20.    print(element)'''
  21. faculty = Faculty(name="МПУ", maxNumberOfStudents=30)
  22.  
  23. #print(list(dictAbiturients.keys()))
  24. #print(faculty.returnPassedAbiturients(dictAbiturients=dictAbiturients))
  25. for element in faculty.returnPassedAbiturients(dictAbiturients=dictAbiturients):
  26.     print(dictAbiturients.get(element).ID)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement