Python 3.7.3 (v3.7.3:ef4ec6ed12, Mar 25 2019, 16:52:21) [Clang 6.0 (clang-600.0.57)] on darwin Type "help", "copyright", "credits" or "license()" for more information. >>> fsum(5) Traceback (most recent call last): File "", line 1, in fsum(5) NameError: name 'fsum' is not defined >>> ========== RESTART: /Users/koc/Desktop/fun1.py ========== >>> fsum(5) 55 >>> ========== RESTART: /Users/koc/Desktop/fun1.py ========== >>> fsum(5) 55 >>> gsum(5) 225 >>> gsum(500) 15687562500 >>> ========== RESTART: /Users/koc/Desktop/fun1.py ========== >>> fsum(5) 55 >>> xsum(5) 55 >>> fsum(5) 55 >>> f = fsum(5) >>> f 55 >>> x = xsum(5) 55 >>> x >>> fsum(5)**2 3025 >>> xsum(5)**2 55 Traceback (most recent call last): File "", line 1, in xsum(5)**2 TypeError: unsupported operand type(s) for ** or pow(): 'NoneType' and 'int' >>> ========== RESTART: /Users/koc/Desktop/fun1.py ========== >>> hsum(4) Traceback (most recent call last): File "", line 1, in hsum(4) TypeError: hsum() missing 1 required positional argument: 'm' >>> hsum(4,7) 748 >>> 4**3 + 5**3 + 6**3 + 7**3 748 >>> gsum(10) 3025 >>> hsum(1,10) 3025 >>> ========== RESTART: /Users/koc/Desktop/fun1.py ========== >>> hw(100,200) 391299250 >>>