Created
January 11, 2017 13:07
-
-
Save prashanth-g/361f4e1b71f2c05a09a434f7abd55230 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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