totalRows = int(raw_input ("Please enter a number: "))
for currentRow in range(1, totalRows+1):
for currentCol in range (1, currentRow+1):
print '*',
print
print
for currentRow in range (1, totalRows+1):
for currentCol in range(1, currentRow+1):
print '*',
print
Output
*
* *
* * *
* * * *
*
* *
* * *
* * * *
Having some problems trying to rearrange this code so that this output prints instead. So basically the bottom triangle should mirror the top but all my logical approaches such as reversing the for loop hasn't worked at all. Any step into the right direction would be greatly appreciated
*
* *
* * *
* * * *
* * * *
* * *
* *
*