Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions students_folder/Nikulina/lab1/lab_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
students = []
n = int(input("Введите количество студентов для ввода: "))
for i in range(n):
print(f"\nСтудент {i+1}:")
student = {
"имя": input("Введите имя: "),
"фамилия": input("Введите фамилию: "),
"возраст": int(input("Введите возраст: ")),
"курс": int(input("Введите курс: "))
}
students.append(student)
for s in students:
print(f"\nСтудент: {s['имя']} {s['фамилия']}")
print(f"Возраст: {s['возраст']}")
print(f"Курс: {s['курс']}")
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.