title: Determine letter based on row and col - python
body: <p>So I'm pretty upset I can't figure something this seemingly trivial out as I'm fairly well versed in Java, but anyways my professor for introduction to Python assigned us a lab where we have to create a pattern with letters based on row and column position. No loops or iterations, just conditional statements.</p>
  
  <p>For instance, this function:</p>
  
  <pre><code>def letter(row, col):
     if row&gt;col:
        return 'T'
     else:
        return 'W'
  </code></pre>
  
  <p>would yield:</p>
  
  <pre><code>WWWWWWWWWWWWWWWWWWWW
  TWWWWWWWWWWWWWWWWWWW
  TTWWWWWWWWWWWWWWWWWW
  TTTWWWWWWWWWWWWWWWWW
  TTTTWWWWWWWWWWWWWWWW
  TTTTTWWWWWWWWWWWWWWW
  TTTTTTWWWWWWWWWWWWWW
  TTTTTTTWWWWWWWWWWWWW
  TTTTTTTTWWWWWWWWWWWW
  TTTTTTTTTWWWWWWWWWWW
  TTTTTTTTTTWWWWWWWWWW
  TTTTTTTTTTTWWWWWWWWW
  TTTTTTTTTTTTWWWWWWWW
  TTTTTTTTTTTTTWWWWWWW
  TTTTTTTTTTTTTTWWWWWW
  TTTTTTTTTTTTTTTWWWWW
  TTTTTTTTTTTTTTTTWWWW
  TTTTTTTTTTTTTTTTTWWW
  TTTTTTTTTTTTTTTTTTWW
  TTTTTTTTTTTTTTTTTTTW
  </code></pre>
  
  <p>if run through his driver file with row and col both equaling 20.</p>
  
  <p>The one I'm stuck with is creating a function for the pattern:</p>
  
  <pre><code>XOOOOOX
  OXOOOXO
  OOXOXOO
  OOOXOOO
  OOXOXOO
  OXOOOXO
  XOOOOOX
  </code></pre>
  
  <p>Please do NOT spoonfeed me the answer, rather point me in the right direction.</p>
  
  <p>So far I know that the X's for the left->right diagonal can be identified when row==col. It's the right->left diagonal I'm having issues with. </p>
  
  <p>Thanks a lot.</p>