CPSC120
Fundamentals of Computer Science

In-class Activity 27

  1. Create a Python program that prompts for a comma separated list of numbers and prints the standard deviation of the list of numbers entered. The standard deviation, s, of a sequence of numbers can be computed using the following equation.

    s=i=1n(xix¯)2n1

    Where x¯ is the average of all the numbers in the sequence.

  2. Create a Python program that prompts for a comma separated list of numbers and prints the standard deviation of the list of numbers entered. The program should use list comprehension.

  3. Create a Python program that reads the EPA data file from the last lab and prints the minimum fuel economy. The program should use list comprehension.