Python 3.13.2 (tags/v3.13.2:4f8bb39, Feb 4 2025, 15:23:48) [MSC v.1942 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. familia = 'Rumyamtsev' first_symbol = familia[0] first_symbol 'R' import keyword sp_kw = keyword.kwlist sp_kw ['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'] >>> sp_kw.pop('nonlocal') Traceback (most recent call last): File "", line 1, in sp_kw.pop('nonlocal') TypeError: 'str' object cannot be interpreted as an integer >>> sp_kw.remove('nonlocal') >>> sp_kw ['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'] >>> kort_nam = ('Vadim', 'Dima', 'Ilya', 'Egor') >>> if type(kort_nam) == tuple: ... print("tuple") ... else: ... print("not tuple") ... ... tuple >>> kort_nam = kort_nam + ('Nikita', 'Alexey') >>> kort_nam ('Vadim', 'Dima', 'Ilya', 'Egor', 'Nikita', 'Alexey') >>> kort_nam.count('Dima') 1 >>> dict_bas = { 'строка': familia, 'символ': first_symbol, 'список': sp_kw, 'кортеж': kort_nam} >>> dict_bas {'строка': 'Rumyamtsev', 'символ': 'R', 'список': ['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'], 'кортеж': ('Vadim', 'Dima', 'Ilya', 'Egor', 'Nikita', 'Alexey')} >>> dict_bas = { 'строка': familia, 'символ': first_symbol, 'список': sp_kw, 'кортеж': kort_nam} >>> dict_bas = { 'строка': familia, 'символ': first_symbol, 'список': sp_kw, 'кортеж': kort_nam}