Skip to content

Instantly share code, notes, and snippets.

@bharathmuddada
Created April 17, 2021 12:37
Show Gist options
  • Save bharathmuddada/17672d13be632ee4e905c3ee54118df3 to your computer and use it in GitHub Desktop.
Save bharathmuddada/17672d13be632ee4e905c3ee54118df3 to your computer and use it in GitHub Desktop.
Pyramid program in python
n=5
for i in range(n):
for j in range(n-i-1):
print(" ",end="")
for k in range(2*i+1):
print("*",end="")
print()
"""
*
***
*****
*******
*********
"""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment