Skip to content

Instantly share code, notes, and snippets.

@ashleighbasil
Created June 14, 2021 19:29
Show Gist options
  • Save ashleighbasil/e59b2050435f8c9c64b009745ba603cf to your computer and use it in GitHub Desktop.
Save ashleighbasil/e59b2050435f8c9c64b009745ba603cf to your computer and use it in GitHub Desktop.
cassidoo arrow problem
def asterisk_arrow(size):
spaces = range(size)
for i in [*spaces, *spaces[-2::-1]]:
print(f'{" " * i}*')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment