title: Triangle wave shaped array in Python
body: <p>What is the most efficient way to produce an array of 100 numbers that form the shape of the triangle wave below, with a max/min amplitude of 0.5?</p>
  
  <p>Triangle waveform in mind:</p>
  
  <p><img src="https://i.stack.imgur.com/2bVCM.jpg" alt="enter image description here"></p>