I have something to share with you guys if you can help me out..
Here is an algorithm to print out a pyramid of numbers:
define totalRows to be how many rows
define columnWidth to be how many characters in each column
for currentRow in range 0 up to (but not including)
for spaceCounter in range 1 up to (but not including)(totalRowscurrentRow)
print columnWidth spaces
for number in range 0 up to (but not including)
print number using columnWidth characters
print currentRow using columnWidth characters
for number in range currentRow-1 down to (but not including) -1
print the number using columnWidth characters
print an end-of-line character
Here I have to Implement the algorithm in Python using ‘for’ loops and the range() builtin function.
Any help guys really appreciated !!!