# This file is demo , line-by-line of lecture. # It includes even the syntax errors and typos. # This is my terminal: michael at michael-air in ~/Desktop/c88c 👉 python3 Python 3.10.12 (main, Aug 14 2023, 02:22:17) [Clang 15.0.0 (clang-1500.0.40.1)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> 3 + 5 8 >>> (3 + 5) * 11 88 >>> True True >>> 1 1 >>> true Traceback (most recent call last): File "", line 1, in NameError: name 'true' is not defined. Did you mean: 'True'? >>> True True >>> 88 > 61 True >>> 88 > 61 + 100 False >>> course = 'C88C' >>> course 'C88C' >>> >>> print('Hello, ' + course) Hello, C88C >>> type(1) >>> type('C88C') >>> 'C88C" File "", line 1 'C88C" ^ SyntaxError: unterminated string literal (detected at line 1) >>> "C88C" 'C88C' >>> print(True) True >>> result = print('Hello, ' + course) Hello, C88C >>> result >>> >>> >>> max(88, 61) 88 >>> result = max(88, 61) >>> result 88 >>> def add_8(num): ... """add 8 to the input num ... >>> add_8(80) ... 88 ... """ ... return 8 + num ... >>> add_8(80) 88 >>> value = add_8(80) >>> value 88 >>> def add_8_print(num): ... """add 8 to the input num ... >>> add_8(80) ... 88 ... """ ... print(8 + num) ... >>> add_ add_8( add_8_print( >>> add_8_print(80) 88 >>> value =add_8_print(80) 88 >>> value