Skip to content

Commit 8b21277

Browse files
authored
Merge pull request #67 from zezOtik/Nikulina_lab7
add text
2 parents 8587109 + 570bf9d commit 8b21277

File tree

7 files changed

+15
-0
lines changed

7 files changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
students = []
2+
n = int(input("Введите количество студентов для ввода: "))
3+
for i in range(n):
4+
print(f"\nСтудент {i+1}:")
5+
student = {
6+
"имя": input("Введите имя: "),
7+
"фамилия": input("Введите фамилию: "),
8+
"возраст": int(input("Введите возраст: ")),
9+
"курс": int(input("Введите курс: "))
10+
}
11+
students.append(student)
12+
for s in students:
13+
print(f"\nСтудент: {s['имя']} {s['фамилия']}")
14+
print(f"Возраст: {s['возраст']}")
15+
print(f"Курс: {s['курс']}")
Binary file not shown.
Binary file not shown.
Binary file not shown.
File renamed without changes.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)