...

/

Exercise 3: Make an Expression

Exercise 3: Make an Expression

Display an expression using the array elements.

We'll cover the following...

Problem statement

Given an array of numbers, display an expression containing the elements in the array separated by the + symbol.

Example

input_array = [1, 2, 3, 4, 5]
result = 1+2+3+4+5

Try it yourself

Press + to interact
def make_expression(input_array)
result = ""
# Start your code here
return result
end