Last login: Tue Mar 9 08:49:56 on ttys003 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. (base) MAC:Tue Mar 09:09:33:0309B> python mary.py 25 25 (base) MAC:Tue Mar 09:09:33:0309B> python mary.py 0 0 0.1 0.0010000000000000002 0.2 0.008000000000000002 0.30000000000000004 0.02700000000000001 0.4 0.06400000000000002 0.5 0.125 0.6 0.216 0.7 0.3429999999999999 0.7999999999999999 0.5119999999999999 0.8999999999999999 0.7289999999999998 0.9999999999999999 0.9999999999999997 25 25 (base) MAC:Tue Mar 09:09:37:0309B> python mary.py Traceback (most recent call last): File "mary.py", line 9, in tov(0, 1, .1, lambda x: x*x*x) File "mary.py", line 6, in tov print(f"{.4:x}\t\t{.4:f(x)}") ValueError: Unknown format code 'x' for object of type 'float' (base) MAC:Tue Mar 09:09:38:0309B> (base) MAC:Tue Mar 09:09:38:0309B> (base) MAC:Tue Mar 09:09:40:0309B> !p python mary.py Traceback (most recent call last): File "mary.py", line 9, in tov(0, 1, .1, lambda x: x*x*x) File "mary.py", line 6, in tov print(f"{.4:x}\t\t{.4:f(x)}") ValueError: Unknown format code 'x' for object of type 'float' (base) MAC:Tue Mar 09:09:40:0309B> python mary.py Traceback (most recent call last): File "mary.py", line 9, in tov(0, 1, .1, lambda x: x*x*x) File "mary.py", line 6, in tov print(f"{x:.4}\t\t{f(x):.4}") ValueError: Precision not allowed in integer format specifier (base) MAC:Tue Mar 09:09:40:0309B> python mary.py 0.0000 0.0000 0.1000 0.0010 0.2000 0.0080 0.3000 0.0270 0.4000 0.0640 0.5000 0.1250 0.6000 0.2160 0.7000 0.3430 0.8000 0.5120 0.9000 0.7290 1.0000 1.0000 25 25 (base) MAC:Tue Mar 09:09:41:0309B> python mary.py 0.0000 0.0000 0.1000 0.0010 0.2000 0.0080 0.3000 0.0270 0.4000 0.0640 0.5000 0.1250 0.6000 0.2160 0.7000 0.3430 0.8000 0.5120 0.9000 0.7290 1.0000 1.0000 25 25 ******************************** 0.0000 0.0000 1.0000 0.0175 2.0000 0.0349 3.0000 0.0523 4.0000 0.0698 5.0000 0.0872 6.0000 0.1045 7.0000 0.1219 8.0000 0.1392 9.0000 0.1564 10.0000 0.1736 11.0000 0.1908 12.0000 0.2079 13.0000 0.2250 14.0000 0.2419 15.0000 0.2588 16.0000 0.2756 17.0000 0.2924 18.0000 0.3090 19.0000 0.3256 20.0000 0.3420 21.0000 0.3584 22.0000 0.3746 23.0000 0.3907 24.0000 0.4067 25.0000 0.4226 26.0000 0.4384 27.0000 0.4540 28.0000 0.4695 29.0000 0.4848 30.0000 0.5000 31.0000 0.5150 32.0000 0.5299 33.0000 0.5446 34.0000 0.5592 35.0000 0.5736 36.0000 0.5878 37.0000 0.6018 38.0000 0.6157 39.0000 0.6293 40.0000 0.6428 41.0000 0.6561 42.0000 0.6691 43.0000 0.6820 44.0000 0.6947 45.0000 0.7071 46.0000 0.7193 47.0000 0.7314 48.0000 0.7431 49.0000 0.7547 50.0000 0.7660 51.0000 0.7771 52.0000 0.7880 53.0000 0.7986 54.0000 0.8090 55.0000 0.8192 56.0000 0.8290 57.0000 0.8387 58.0000 0.8480 59.0000 0.8572 60.0000 0.8660 61.0000 0.8746 62.0000 0.8829 63.0000 0.8910 64.0000 0.8988 65.0000 0.9063 66.0000 0.9135 67.0000 0.9205 68.0000 0.9272 69.0000 0.9336 70.0000 0.9397 71.0000 0.9455 72.0000 0.9511 73.0000 0.9563 74.0000 0.9613 75.0000 0.9659 76.0000 0.9703 77.0000 0.9744 78.0000 0.9781 79.0000 0.9816 80.0000 0.9848 81.0000 0.9877 82.0000 0.9903 83.0000 0.9925 84.0000 0.9945 85.0000 0.9962 86.0000 0.9976 87.0000 0.9986 88.0000 0.9994 89.0000 0.9998 90.0000 1.0000 (base) MAC:Tue Mar 09:09:43:0309B> ls mary.py (base) MAC:Tue Mar 09:09:47:0309B> vi by_value.py (base) MAC:Tue Mar 09:10:04:0309B> ls by_value.py mary.py (base) MAC:Tue Mar 09:10:04:0309B> vi for.py (base) MAC:Tue Mar 09:10:10:0309B> ls by_value.py for.py mary.py (base) MAC:Tue Mar 09:10:10:0309B> vi by_value.py (base) MAC:Tue Mar 09:10:17:0309B> ls by_value.py for.py mary.py (base) MAC:Tue Mar 09:10:17:0309B>