Python 3.13.7 (tags/v3.13.7:bcee1c3, Aug 14 2025, 14:15:11) [MSC v.1944 64 bit (AMD64)] on win32 Enter "help" below or click "Help" above for more information. >>> familia='Snegura' >>> S='S' >>> ldel S SyntaxError: invalid syntax >>> Del S SyntaxError: invalid syntax >>> del S >>> first_letter = familia[0] >>> first_letter 'S' >>> sp_kw = keyword.kwlist.copy() Traceback (most recent call last): File "", line 1, in sp_kw = keyword.kwlist.copy() NameError: name 'keyword' is not defined. Did you forget to import 'keyword'? >>> import keyword >>> sp_kw = keyword.kwlist.copy() >>> if 'nonlocal' in sp_kw: ... 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 = ('Snegura', 'Turovets', 'Yefremov', "Khatyukhin') SyntaxError: unterminated string literal (detected at line 1) kort_nam = ('Snegura', 'Turovets', 'Yefremov', 'Khatyukhin') kort_nam ('Snegura', 'Turovets', 'Yefremov', 'Khatyukhin') assert isinstance(kort_nam, tuple) del kort_nam kort_nam = ('Дана', 'Женя', 'Стас', 'Дима') kort_nam ('Дана', 'Женя', 'Стас', 'Дима') assert isinstance(kort_nam, tuple) kort_nam = kort_nam + ('Настя', 'Лена') kort_nam ('Дана', 'Женя', 'Стас', 'Дима', 'Настя', 'Лена') dima_count = kort_nam.count('Dima') dima_count 0 dima_count = kort_nam.count('Дима') dima_count 1 dict_bas = { 'строка': familia, 'символ': first_letter, 'список': sp_kw, 'кортеж': kort_nam } dict_bas {'строка': 'Snegura', 'символ': 'S', 'список': ['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'], 'кортеж': ('Дана', 'Женя', 'Стас', 'Дима', 'Настя', 'Лена')}