GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Python/average_height2.py at master · ResilientSpring/Python Expand file tree/ Copy pathaverage_height2.pyMore file actions 13 lines (8 loc) · 274 Bytes / Copy pathaverage_height2.pyFile metadata and controls13 lines (8 loc) · 274 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 # Example on page 63 and 64 of the textbook n = 5; h = [1.60, 1.85, 1.75, 1.80, 0.50]; # https://www.w3schools.com/python/python_arrays.asp sum = 0; for i in range(0, 5, 1): sum = sum + h[i]; average = sum / n; print("Average height: {:f} meters".format(average)); |
| You are visitor 01402520 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |