Exercise 3: Make an Expression

Display an expression using the array elements.

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

Create a free account to access the full course.

By signing up, you agree to Educative's Terms of Service and Privacy Policy