DATA170
Exploring Data

Activity 2

Python Review

  1. Write the function fuzzy_equals(text1, text2) that returns whether text1 is equal to text2, ignoring capitalization and whitespace.

  2. Write a program that uses the list append method to create a list of 10 random floats in the range [0.0, 1.0).

  3. Write the function average(numbers) that returns the average of the list numbers.