title: How to make code more compact?
body: <p>can you help me make this more compact? I need to make it so that for every value of board[0] I get another picture. My script works but I find it too long and bulky.</p>
  
  <pre><code>if board[0] == 0 :
      square_1_button.config(image=T0S)
  if board[0] == 1 :
      square_1_button.config(image=T1S)
  if board[0] == 2 :
      square_1_button.config(image=T2S)
  if board[0] == 3 :
      square_1_button.config(image=T3S)
  if board[0] == 4 :
      square_1_button.config(image=T4S)
  if board[0] == 5 :
      square_1_button.config(image=T5S)
  if board[0] == 6 :
      square_1_button.config(image=T6S)
  if board[0] == 7 :
      square_1_button.config(image=T7S)
  if board[0] == 8 :
      square_1_button.config(image=T8S)
  if board[0] == 9 :
      square_1_button.config(image=T9S)
  if board[0] == 10 :
      square_1_button.config(image=T10S)
  if board[0] == 11 :
      square_1_button.config(image=T11S)
  if board[0] == 12 :
      square_1_button.config(image=T12S)
  if board[0] == 13 :
      square_1_button.config(image=T13S)
  if board[0] == 14 :
      square_1_button.config(image=T14S)
  if board[0] == 15 :
      square_1_button.config(image=T15S)
  if board[0] == 16 :
      square_1_button.config(image=T16S)
  if board[0] == 17 :
      square_1_button.config(image=T17S)
  if board[0] == 18 :
      square_1_button.config(image=T18S)
  if board[0] == 19 :
      square_1_button.config(image=T19S)
  if board[0] == 20 :
      square_1_button.config(image=T20S)
  if board[0] == 21 :
      square_1_button.config(image=T21S)
  if board[0] == 22 :
      square_1_button.config(image=T22S)
  if board[0] == 23 :
      square_1_button.config(image=T23S)
  if board[0] &gt;= 24 :
      square_1_button.config(image=T24S)
  </code></pre>