Skip to content

Instantly share code, notes, and snippets.

@prashanth-g
Created January 11, 2017 13:07
Show Gist options
  • Save prashanth-g/361f4e1b71f2c05a09a434f7abd55230 to your computer and use it in GitHub Desktop.
Save prashanth-g/361f4e1b71f2c05a09a434f7abd55230 to your computer and use it in GitHub Desktop.
def printstars(rows):
for i in range(rows):
print ' '*(rows-i-1)+'*'*(2*i+1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment