>>> ord("a") 97 >>> ord("b") 98 >>> ord("abc") Traceback (most recent call last): File "<stdin>", line 1, in <module> TypeError: ord() expected a character, but string of length 3 found >>> chr(56) '8' >>> chr(144) '\x90' >>> chr(32) ' ' >>> (base) MAC:Mon Feb 15:09:51:ch3> vi fun.py (base) MAC:Mon Feb 15:09:53:ch3> python fun.py (base) MAC:Mon Feb 15:09:53:ch3> !vi vi fun.py (base) MAC:Mon Feb 15:09:54:ch3> python fun.py 100 (base) MAC:Mon Feb 15:09:54:ch3> !vi vi fun.py (base) MAC:Mon Feb 15:09:56:ch3> !p python fun.py 100 121 (base) MAC:Mon Feb 15:09:56:ch3> !vi vi fun.py (base) MAC:Mon Feb 15:09:58:ch3> python fun.py 100 121 Sell back your houses at half-price to the bank Mortage your deeds! Pay me! (base) MAC:Mon Feb 15:09:58:ch3> !vi vi fun.py (base) MAC:Mon Feb 15:09:59:ch3> !p python fun.py 100 121 Sell back your houses at half-price to the bank Mortage your deeds! Pay me! None (base) MAC:Mon Feb 15:09:59:ch3> python Python 3.8.5 (default, Sep 4 2020, 02:22:02) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information. >>> type(None) <class 'NoneType'> >>> (base) MAC:Mon Feb 15:10:00:ch3> !vi vi fun.py (base) MAC:Mon Feb 15:10:08:ch3> python Python 3.8.5 (default, Sep 4 2020, 02:22:02) [Clang 10.0.0 ] :: Anaconda, Inc. on darwin Type "help", "copyright", "credits" or "license" for more information. >>> dir() ['__annotations__', '__builtins__', '__doc__', '__loader__', '__name__', '__package__', '__spec__'] >>> 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', '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'] >>> (base) MAC:Mon Feb 15:10:09:ch3> !vi vi fun.py (base) MAC:Mon Feb 15:10:09:ch3> vi fun.py (base) MAC:Mon Feb 15:10:10:ch3> vi yokel.py (base) MAC:Mon Feb 15:10:10:ch3> python yokel.py 100 (base) MAC:Mon Feb 15:10:10:ch3> !vi vi yokel.py (base) MAC:Mon Feb 15:10:11:ch3> python yokel.py 100 Traceback (most recent call last): File "yokel.py", line 6, in <module> print(y) NameError: name 'y' is not defined (base) MAC:Mon Feb 15:10:11:ch3> !vi vi yokel.py (base) MAC:Mon Feb 15:10:22:ch3>