Created
June 14, 2021 19:29
-
-
Save ashleighbasil/e59b2050435f8c9c64b009745ba603cf to your computer and use it in GitHub Desktop.
cassidoo arrow problem
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
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