Created
July 5, 2020 06:23
-
-
Save z-shah/5b8beba9ad3f87db60061a5d6cdced10 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
for i in range(1,8,2): | |
if i == 1: | |
print(' ' + '*'*i + ' ' ) | |
elif i == 3: | |
print(' ' + '*'*i + ' ' ) | |
elif i == 5: | |
print(' '+ '*'*i + ' ') | |
elif i == 7: | |
print('*'*i) | |
for a in range(5,0,-2): | |
if a == 5: | |
print(' ' + a*'*' + ' ') | |
elif a == 3: | |
print(' ' + a*'*' + ' ') | |
elif a == 1: | |
print(' ' + a*'*' + ' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment