title: Repeat a number 3 times for output
body: <p>I need to define a function which repeats a number 3 times. I can only get it to work as a list where the output is [1, 1, 1] if the input is 1. However I need the output to be 111
  This is what I have</p>
  
  <pre><code>def repeat_number(num):
      if not type(num) is int:
          return None
  
      list_1 = []
      x = list_1.append(num)
      y = list_1*3
  
      for i in y:
  
      return i,i,i
  
  a = 12
  
  print (repeat_number(a))
  </code></pre>
  
  <p>and again I want the output to be 121212</p>