diff --git a/squares.py b/squares.py index d7e454e..4ab0a82 100644 --- a/squares.py +++ b/squares.py @@ -10,9 +10,9 @@ def average_of_squares(list_of_numbers, list_of_weights=None): Example: -------- >>> average_of_squares([1, 2, 4]) - 7.0 + 21 >>> average_of_squares([2, 4], [1, 0.5]) - 6.0 + 12.0 >>> average_of_squares([1, 2, 4], [1, 0.5]) Traceback (most recent call last): AssertionError: weights and numbers must have same length @@ -37,8 +37,8 @@ def convert_numbers(list_of_strings): Example: -------- - >>> convert_numbers(["4", " 8 ", "15 16", " 23 42 "]) - [4, 8, 15, 16] + >>> convert_numbers(["4", " 8 ", "15" ,"16"]) + [4.0, 8.0, 15.0, 16.0] """ all_numbers = []