Challenge

Write a program to draw an ASCII pyramid.

Your users specify the height of the pyramid.

Sample Output


How tall shall we build your pyramid? 11

* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

Enjoy your pyramid!








Curriculum Connections

  • Iteration
  • Console i/o
  • Working with variables
  • Using range(n, m) to generate a list (Python solution)

Extending the Challenge

Can you allow the user to select a different character from the asterisk?

Do NOT follow this link or you will be banned from the site!

Non-profit Tax ID # 203478467