'''Triangle generator'''
totalRows = int(raw_input ("Please enter a number: "))
stars = totalRows
for currentCol in range(1, currentRow+1):
for currentRow in range(1, totalRows+1):
print '*',
print
print
for currentRow in range (1, totalRows+1):
for currentCol in range(1, currentRow+1):
print '* ' * stars
stars -= 1
Current output:
*
* *
* * *
* * * *
* * * *
* * *
* *
*
I would like to know if there is a way to reflect the output triangles so that they print like this?
*
* *
* * *
* * * *
* * * *
* * *
* *
*
Is it something to do with spacing?