Created
March 21, 2018 14:42
-
-
Save jcchurch/91ef739b25682210de54e1941019108a to your computer and use it in GitHub Desktop.
This file contains hidden or 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
num=int(input()) | |
for i in range(num, -1, -1): | |
print(" "*i + "*"*((num-i)*2+1)) | |
for i in range(1, num+1): | |
print(" "*i + "*"*((num-i)*2+1)) | |
for i in range(num*2+1): | |
print("*"*(num*2+1)) | |
for i in range(num, -1, -1): | |
print(" "*i + "*"*((num-i)*2+1)) | |
for i in range(1, num+1): | |
print(" "*i + "*"*((num-i)*2+1)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment