Basic Python List Excercise
<p>How do I make this graph print vertically rather than horizontally? Please try to use the same concept(loops, lists) I used in my code so I understand the changes. Thank you for your help!</p>

<p><strong>Here is the code:</strong></p>

<pre><code>SIGN='x'

test_list=[500000,5000000,7000000]
test_calc_list=[]
test_sum=sum(test_list)

test_string_list=['Test1','Test2','Test3']
signs_list=[]

for x in test_list:
    test_calc=round((x/float(test_sum)*10))
    test_calc_list.append(test_calc)

for y in test_calc_list:
    y=int(y)
    signs=y*SIGN
    signs_list.append(signs)

for z in range(len(test_string_list)):
    print "%8s: %-6s %7i"% (test_string_list[z],signs_list[z],test_list[z])
</code></pre>

<p><strong>This is the output I get:</strong></p>

<pre><code>Test1:           500000
Test2: xxxx     5000000
Test3: xxxxxx   7000000
</code></pre>

<p><strong>This is the output I want:</strong></p>

<pre><code>                      x
           x          x
           x          x
           x          x
           x          x
Test1      Test2      Test3        
500000     5000000    7000000
</code></pre>
