Skip to content

Instantly share code, notes, and snippets.

@z-shah
Created July 5, 2020 06:23
Show Gist options
  • Save z-shah/5b8beba9ad3f87db60061a5d6cdced10 to your computer and use it in GitHub Desktop.
Save z-shah/5b8beba9ad3f87db60061a5d6cdced10 to your computer and use it in GitHub Desktop.
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