user
You need to complete the following task:

Write the code for a function that takes an integer and returns a concatenated version of that integer.

Input: 8

Answer:
assistant
def concat_int(num):
  return ''.join(str(i) for i in range(1, num+1))