ответвлено от main/python-labs
report:добавлен
Этот коммит содержится в:
@@ -21,10 +21,9 @@
|
|||||||
|
|
||||||
#Код программы:
|
#Код программы:
|
||||||
|
|
||||||

|
|
||||||
```
|
```
|
||||||
familia = "Lazarev"
|
familia = "Lazarev"
|
||||||
perem = "L"
|
P = familia[0]
|
||||||
|
|
||||||
import keyword
|
import keyword
|
||||||
sp_kw = keyword.kwlist
|
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', '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']
|
['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
|
Количество человек с именем 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
|
Lazarev
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user