Skip to content

Instantly share code, notes, and snippets.

@x1001000
Created July 27, 2021 11:18
Show Gist options
  • Save x1001000/33a43a2947434ea316b4527a70d91e5c to your computer and use it in GitHub Desktop.
Save x1001000/33a43a2947434ea316b4527a70d91e5c to your computer and use it in GitHub Desktop.
MID = 9
for i in range(MID):
row = [' '] * (2 * MID + 1)
row[MID - i] = row[MID + i] = '*'
print(''.join(row))
print('*' * (2 * MID + 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment