Coding challenges on values, strings, and decisions

Problem 1Objects, Names, and Assignment

Sum Then Multiply

Assume you are given three numeric variables a, b, and c (already defined for you). Create a variable named result that first adds a and b, and then multiplies that sum by c.

Be careful about operator precedence: the addition must happen before the multiplication.

Scratchpad— run any Python to test ideas
Python runtime ready in a moment
Python runtime ready in a moment
Visible tests · 2Examples — click to expand
result is a number
result equals 32
Hidden tests · 3Bodies hidden — pass/fail only
Hidden test 1
Hidden test 2
Hidden test 3