I need help making a triangle that generates using user input by making the user enter the number of rows
<p>It should look like this but reversed and the first column indented</p>

<pre><code>OOOOOOO  
 OOOOOO  
  OOOOO  
   OOOO  
    OOO  
     OO  
      O
</code></pre>

<p>Every time I attempt to do it I always get this code iteration and I don't know where I am going wrong.</p>

<p>Here is what I got so far</p>

<pre><code>row = int(input('Please enter how many rows you want: '))

for r in range(row,0,-1):
    for c in range(r):
        print('o', end='')
    print('')
</code></pre>

<p>You can do in this way:</p>

<pre><code>line = int(input('Please enter how many lines you want: '))
vec = [i for i in range(1,line+1)]
for elem in vec:  print("\t"+"O"*elem)
</code></pre>

<p>Output example:</p>

<p><a href="http://i.stack.imgur.com/l1Vx6.png" rel="nofollow"><img src="http://i.stack.imgur.com/l1Vx6.png" alt="enter image description here"></a></p>

python for-loop nested-loops