← Back to challenges

Concatenating Two Integer Lists

PythonMediumarrayslanguage_fundamentalsnumbers

Instructions

Create a function to concatenate two integer lists.

Examples

concat([1, 3, 5], [2, 6, 8]) ➞ [1, 3, 5, 2, 6, 8]

concat([7, 8], [10, 9, 1, 1, 2]) ➞ [7, 8, 10, 9, 1, 1, 2]

concat([4, 5, 1], [3, 3, 3, 3, 3]) ➞ [4, 5, 1, 3, 3, 3, 3, 3]

Notes

  • Don't forget to return the result.
  • See Resources tab for more info.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Maximum Difference