title: Python 3.6 - I need IDEAS to optimize this chunk of code and make it cleaner
body: <p>This is what I currently have. Briefly its purpose is part of a bigger program to take psuedocode and turn it into a game board. </p>
  
  <pre><code>FIRST_LAYER_CODE = [] # This is where the psuedocode goes.
  
  def irrelevant_name(tilesMade, xCoordinate, yCoordinate):
      # There is some other stuff in this function, but it is not relevant to the question.
      elif FIRST_LAYER_CODE[tilesMade][0:3] == "BLC":
          for i in range(2):
              for j in [0, (1/3), (2/3)]:
                  Rectangle(Point(xCoordinate + j, yCoordinate + j), Point(xCoordinate + j + (1/3) + (i * (1 - (j + (1/3)))), yCoordinate + 1 - (i * ((2/3) - j)))).draw(window)
      elif FIRST_LAYER_CODE[tilesMade][0:3] == "BRC":
          for i in range(2):
              for j in [1, (2/3), (1/3)]:
                  Rectangle(Point(xCoordinate + j, yCoordinate + 1 - j), Point(xCoordinate + j - (1/3) - (i * (j - (1/3))), yCoordinate + 1 - (i * (j - (1/3))))).draw(window)
      elif FIRST_LAYER_CODE[tilesMade][0:3] == "TLC":
          for i in range(2):
              for j in [0, (1/3), (2/3)]:
                  Rectangle(Point(xCoordinate + j, yCoordinate + 1 - j), Point(xCoordinate + j + (1/3) + (i * (1 - (j + (1/3)))), yCoordinate + (i * ((2/3) - j)))).draw(window)
      elif FIRST_LAYER_CODE[tilesMade][0:3] == "TRC":
          for i in range(2):
              for j in [1, (2/3), (1/3)]:
                  Rectangle(Point(xCoordinate + j, yCoordinate + j), Point(xCoordinate + j - (1/3) - (i * (j - (1/3))), yCoordinate + (i * (j - (1/3))))).draw(window)
  </code></pre>
  
  <p>This code works as intended, but I always see people have more stylish code, and more importantly better optimized code. What are some things I can do to simplify this chunk of code? I AM NOT ASKING FOR YOU TO GIVE ME ANY CODE!!! I JUST WANT IDEAS TO OPTIMIZE THIS CODE BECAUSE I AM NEW TO PROGRAMMING!!! (The caps are not a mean gesture, but I don't want people saying that I'm just asking for code.)</p>
  
  <p>Now I know the first suggestion I get will be that the for loops seem repetitive and that I should make a new function that has the for loops and makes the rectangle, but the problem is the part that makes the new rectangle is different for each loop, and I can not pass through arguments such as (1 - j) because j would not be declared yet. </p>
  
  <p>I have been thinking about this for a while, and have come up with nothing. I just need ideas please and of course THANK-YOU!</p>