|
|
@@ -4,7 +4,6 @@ from random import randint
|
|
|
students_list = []
|
|
|
|
|
|
# На 4-5
|
|
|
-"""
|
|
|
students_list.append("Артикуленко Маргарита Михайловна ")
|
|
|
students_list.append("Белошапко Карина Алексеевна")
|
|
|
students_list.append("Ескин Владислав Игоревич")
|
|
|
@@ -19,7 +18,6 @@ students_list.append("Горелый Илья Александрович ")
|
|
|
students_list.append("Пастухов Иван Геннадьевич")
|
|
|
students_list.append("Суровый Александр Владимирович")
|
|
|
students_list.append("Тарабан Матвей Владимирович")
|
|
|
-"""
|
|
|
# На 3
|
|
|
students_list.append("Акуленко Илья Игоревич ")
|
|
|
students_list.append("Дорошенко Иван Дмитриевич")
|
|
|
@@ -37,16 +35,39 @@ n_rand_student = random.randint(0,len(students_list)-1)
|
|
|
rand_student = students_list[n_rand_student]
|
|
|
"""
|
|
|
prakt_list = ["Практ. №7", "Практ. №8", "Практ. №11"]
|
|
|
-random.shuffle(prakt_list)
|
|
|
|
|
|
-# количество задач в практической работе
|
|
|
-n_zadach = 0
|
|
|
-if prakt_list[0] == "Практ. №7":
|
|
|
- n_zadach = 170
|
|
|
-if prakt_list[0] == "Практ. №8":
|
|
|
- n_zadach = 19
|
|
|
-if prakt_list[0] == "Практ. №11":
|
|
|
- n_zadach = 260
|
|
|
+# Электронный журнал
|
|
|
+journal_26_dict = {}
|
|
|
+
|
|
|
+while True:
|
|
|
+ # выбираем случайного студента
|
|
|
+ rand_student = random.choice(students_list)
|
|
|
+ random.shuffle(prakt_list)
|
|
|
+
|
|
|
+ # количество задач в практической работе
|
|
|
+ n_zadach = 0
|
|
|
+ if prakt_list[0] == "Практ. №7":
|
|
|
+ n_zadach = 170
|
|
|
+ if prakt_list[0] == "Практ. №8":
|
|
|
+ n_zadach = 19
|
|
|
+ if prakt_list[0] == "Практ. №11":
|
|
|
+ n_zadach = 260
|
|
|
+
|
|
|
+
|
|
|
+ print(f"Случайный студент: {rand_student}; выполняет {prakt_list[0]}, задача {random.randint(1, n_zadach)}")
|
|
|
+
|
|
|
+ # Вводим оценку
|
|
|
+ try:
|
|
|
+ scores_list = journal_26_dict[rand_student]
|
|
|
+ except:
|
|
|
+ scores_list = []
|
|
|
+ a = int(input("Введите оценку: "))
|
|
|
+ scores_list.append(a)
|
|
|
+ journal_26_dict[rand_student] = scores_list
|
|
|
|
|
|
+ print()
|
|
|
+ print("-----------------------------------")
|
|
|
+ for student in journal_26_dict.keys():
|
|
|
+ print(f"{student}: {journal_26_dict[student]}")
|
|
|
|
|
|
-print(f"Случайный студент: {rand_student}; выполняет {prakt_list[0]}, задача {random.randint(1, n_zadach)}")
|
|
|
+ print()
|