diff --git a/TEMA2/report.md b/TEMA2/report.md index 625b067..785d2a3 100644 --- a/TEMA2/report.md +++ b/TEMA2/report.md @@ -28,7 +28,7 @@ ## Выполнение пункта 3 -``` +```py >>> gg1=1.6 >>> hh1='Строка' >>> 73sr=3 @@ -39,7 +39,7 @@ SyntaxError: invalid syntax ## Выполнение пункта 4 -``` +```py >>> import keyword >>> keyword.kwlist ['False', 'None', 'True', '__peg_parser__', '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'] @@ -47,7 +47,7 @@ SyntaxError: invalid syntax ## Выполнение пункта 5 -``` +```py >>> import builtins >>> dir(builtins) ['ArithmeticError', 'AssertionError', 'AttributeError', 'BaseException', 'BlockingIOError', 'BrokenPipeError', 'BufferError', 'BytesWarning', 'ChildProcessError', 'ConnectionAbortedError', 'ConnectionError', 'ConnectionRefusedError', 'ConnectionResetError', 'DeprecationWarning', 'EOFError', 'Ellipsis', 'EnvironmentError', 'Exception', 'False', 'FileExistsError', 'FileNotFoundError', 'FloatingPointError', 'FutureWarning', 'GeneratorExit', 'IOError', 'ImportError', 'ImportWarning', 'IndentationError', 'IndexError', 'InterruptedError', 'IsADirectoryError', 'KeyError', 'KeyboardInterrupt', 'LookupError', 'MemoryError', 'ModuleNotFoundError', 'NameError', 'None', 'NotADirectoryError', 'NotImplemented', 'NotImplementedError', 'OSError', 'OverflowError', 'PendingDeprecationWarning', 'PermissionError', 'ProcessLookupError', 'RecursionError', 'ReferenceError', 'ResourceWarning', 'RuntimeError', 'RuntimeWarning', 'StopAsyncIteration', 'StopIteration', 'SyntaxError', 'SyntaxWarning', 'SystemError', 'SystemExit', 'TabError', 'TimeoutError', 'True', 'TypeError', 'UnboundLocalError', 'UnicodeDecodeError', 'UnicodeEncodeError', 'UnicodeError', 'UnicodeTranslateError', 'UnicodeWarning', 'UserWarning', 'ValueError', 'Warning', 'WindowsError', 'ZeroDivisionError', '_', '__build_class__', '__debug__', '__doc__', '__import__', '__loader__', '__name__', '__package__', '__spec__', 'abs', 'all', 'any', 'ascii', 'bin', 'bool', 'breakpoint', 'bytearray', 'bytes', 'callable', 'chr', 'classmethod', 'compile', 'complex', 'copyright', 'credits', 'delattr', 'dict', 'dir', 'divmod', 'enumerate', 'eval', 'exec', 'exit', 'filter', 'float', 'format', 'frozenset', 'getattr', 'globals', 'hasattr', 'hash', 'help', 'hex', 'id', 'input', 'int', 'isinstance', 'issubclass', 'iter', 'len', 'license', 'list', 'locals', 'map', 'max', 'memoryview', 'min', 'next', 'object', 'oct', 'open', 'ord', 'pow', 'print', 'property', 'quit', 'range', 'repr', 'reversed', 'round', 'set', 'setattr', 'slice', 'sorted', 'staticmethod', 'str', 'sum', 'super', 'tuple', 'type', 'vars', 'zip'] @@ -151,7 +151,7 @@ class zip(object) ## Выполнение пункта 6 -``` +```py >>> Gg1=45 >>> Gg1;gg1 45 @@ -160,7 +160,7 @@ class zip(object) ## Изучение простых базовых типов объектов(пункт 7) -``` +```py >>> bb1=True; bb2=False >>> bb1;bb2 True @@ -234,7 +234,7 @@ False ## Изучение более сложных типов объектов(пункт 8) -``` +```py >>> spis1=[111,'Spisok',5-9j] >>> print(spis1) [111, 'Spisok', (5-9j)] @@ -307,20 +307,20 @@ False ``` Элементов в получившимся словаре - 5, т.к. zip() работает до конца b -``` +```py >>> AVTI={'Курс I':[22,23,17,24,30,29,28,25,23,0,4,31,30,33,18,12,27],'Курс II':[18,16,12,15,29,18,21,23,13,0,4,20,31,26,16,], 'Курс III':[17,12,0,6,17,15,19,19,0,0,5,17,22,18,12], 'Курс IV':[27,16,0,13,17,15,19,20,0,0,2,15,18,16,17]} >>> AVTI[' Курс III '][5] >>> AVTI['Курс III'][5] 15 ``` -``` +```py mnoz1={'двигатель','датчик','линия связи','датчик','микропроцессор','двигатель'} mnoz1 {'датчик', 'линия связи', 'микропроцессор', 'двигатель'} ``` -``` +```py >>> mnoz2={'тетрадь','тетрадь',32, complex(2.242 , 12), 32} >>> mnoz2 {32, 'тетрадь', (2.242+12j)}