Login
📚 Python for Introductory Statistics: Lab Workbook
Chapters ▾

4.1 The for Loop

Watch demo video 1

Watch demo video 2

Lab 4.1.1

Use the for loop to find the average age of the IL Supreme Court Justices given the list of ages: x=[77, 72,73,62,77,55].

view answer

Adapted from Python for Introductory Statistics: Student's Lab Workbook, by Simon Aman (Truman College, City Colleges of Chicago), licensed under CC BY 4.0. Changes were made: reformatted as an accessible XYZ web edition with live in-browser code cells. License: CC-BY-4.0.