diff --git a/021_two_step.py b/021_two_step.py index 43ee724b..0433a29f 100644 --- a/021_two_step.py +++ b/021_two_step.py @@ -38,9 +38,10 @@ def add_one_and_divide_by_two_with_an_expression(num): print("Function: divide_by_two_and_add_one") def divide_by_two_and_add_one(num): - # Divide num by two and add one to the result - pass # <-- This does nothing, replace it with your code - + divide=num/2 + added=divided+1 + return added + check_that_these_are_equal( divide_by_two_and_add_one(6), 4.0 @@ -66,8 +67,9 @@ def multiply_by_forty_and_add_sixty(num): print("Function: add_together_and_double") def add_together_and_double(num_a, num_b): - # Add together num_a and num_b, then double the result - pass # <-- This does nothing, replace it with your code + added=num_a+num_b + doubled=added*2 + return doubled check_that_these_are_equal( add_together_and_double(3, 4),