From 3154ec3d2f588a0f40d1b11f2692c8111a0b88b5 Mon Sep 17 00:00:00 2001 From: Danil Date: Fri, 26 Sep 2025 11:08:46 +0300 Subject: [PATCH] =?UTF-8?q?report:=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- TEMA2/task.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/TEMA2/task.md b/TEMA2/task.md index e78d268..d90b8e7 100644 --- a/TEMA2/task.md +++ b/TEMA2/task.md @@ -21,10 +21,9 @@ #Код программы: -![](task1.png) ``` familia = "Lazarev" -perem = "L" +P = familia[0] import keyword sp_kw = keyword.kwlist @@ -53,7 +52,6 @@ print(dict_bas['Строка1']) ``` #Результат программы: ``` -![](task2.png) ['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield'] ['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield'] @@ -68,7 +66,7 @@ print(dict_bas['Строка1']) Количество человек с именем Dima среди элементов кортежа= 0 -{'Строка1': 'Lazarev', 'Строка2': 'L', 'Список': ['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield'], 'Кортеж': ('Danil', 'Pavel', 'Elizoveta', 'Ekaterina', 'Daniil', 'Dmitriy')} +{'Строка1': 'Lazarev', 'Строка2': 'P', 'Список': ['False', 'None', 'True', 'and', 'as', 'assert', 'async', 'await', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield'], 'Кортеж': ('Danil', 'Pavel', 'Elizoveta', 'Ekaterina', 'Daniil', 'Dmitriy')} Lazarev