Skip to content

Instantly share code, notes, and snippets.

@ewpratten
Created March 10, 2020 02:51
Show Gist options
  • Save ewpratten/3514974aedd3b5272abd0e241c73333b to your computer and use it in GitHub Desktop.
Save ewpratten/3514974aedd3b5272abd0e241c73333b to your computer and use it in GitHub Desktop.
r=range(15)
for i in range(len(r)*2): print(("."*sum(r[:(i if i <= len(r) else len(r)-i)])))
.
...
......
..........
...............
.....................
............................
....................................
.............................................
.......................................................
..................................................................
..............................................................................
...........................................................................................
.........................................................................................................
...........................................................................................
..............................................................................
..................................................................
.......................................................
.............................................
....................................
............................
.....................
...............
..........
......
...
.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment