|
|
|
|
@ -21,10 +21,9 @@
|
|
|
|
|
|
|
|
|
|
#Код программы:
|
|
|
|
|
|
|
|
|
|

|
|
|
|
|
```
|
|
|
|
|
familia = "Lazarev"
|
|
|
|
|
perem = "L"
|
|
|
|
|
P = familia[0]
|
|
|
|
|
|
|
|
|
|
import keyword
|
|
|
|
|
sp_kw = keyword.kwlist
|
|
|
|
|
@ -53,7 +52,6 @@ print(dict_bas['Строка1'])
|
|
|
|
|
```
|
|
|
|
|
#Результат программы:
|
|
|
|
|
```
|
|
|
|
|

|
|
|
|
|
['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
|
|
|
|
|
|