I need some help figuring out how to change the number of spaces on each line of the pyramid. The pyramid comes out with 5 spaces at the beginning of each line instead of 4, then 3 then 2, etc. I thought that by telling the print_row function that the input for "spaces" would be the height indicated by the user minus 1, and then subtracted by one each time it goes through the loop should achieve this but I'm stuck. Thanks in advance for any help!
help fixing the spaces on pyramid
AmyG
- 41
- 4