From e5340044d3454d4f002664879db7f0e293e081f2 Mon Sep 17 00:00:00 2001 From: ButkoZV Date: Fri, 24 Oct 2025 07:36:06 +0000 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB(?= =?UTF-8?q?=D0=B0)=20=D0=BD=D0=B0=20'TEMA3/report.md'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMA3/report.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/TEMA3/report.md b/TEMA3/report.md index 8a856cf..29b011e 100644 --- a/TEMA3/report.md +++ b/TEMA3/report.md @@ -722,27 +722,27 @@ False ```py >>> student = { - "name": "Nikita", + "name": "Zakhar", "age": 19, "city": "Moscow", "courses": ["Math", "Physics"], "gpa": 2.74 } >>> student -{'name': 'Nikita', 'age': 19, 'city': 'Moscow', 'courses': ['Math', 'Physics'], 'gpa': 2.74} +{'name': 'Zakhar', 'age': 19, 'city': 'Moscow', 'courses': ['Math', 'Physics'], 'gpa': 2.74} >>> student.get("name") -'Nikita' +'Zakhar' >>> student.keys() dict_keys(['name', 'age', 'city', 'courses', 'gpa']) >>> student.values() -dict_values(['Nikita', 19, 'Moscow', ['Math', 'Physics'], 2.74]) +dict_values(['Zakhar', 19, 'Moscow', ['Math', 'Physics'], 2.74]) >>> student.update({"gpa": 4.5, "lazy": True}) >>> student -{'name': 'Nikita', 'age': 19, 'city': 'Moscow', 'courses': ['Math', 'Physics'], 'gpa': 4.5, 'lazy': True} +{'name': 'Zakhar', 'age': 19, 'city': 'Moscow', 'courses': ['Math', 'Physics'], 'gpa': 4.5, 'lazy': True} >>> student.pop("lazy") True >>> student -{'name': 'Nikita', 'age': 19, 'city': 'Moscow', 'courses': ['Math', 'Physics'], 'gpa': 4.5} +{'name': 'Zakhar', 'age': 19, 'city': 'Moscow', 'courses': ['Math', 'Physics'], 'gpa': 4.5} >>> student.clear() >>> student {}