Solution 1

# Write the equation to calculate this average in one line
average_of_3_5_7 = (3 + 5 + 7) / 3

Write an equation!

Okay, now that you've proved you can do basic math operations, let's put you to the test.

Write the equation to get the average of the numbers 3, 5, and 7. Remember, you'll have to add them all together first, and then divide them by how many numbers you're taking the average of (3 in this case).

Hint: You'll need parenthesis around the addition part as order of operations in math is important in Python too! Let Python do the math for you!

Test Cases

test equations - Run Test

def test_equations():
    assert average_of_3_5_7 == 5
# Write the equation to calculate this average in one line average_of_3_5_7 = ?