Created
February 6, 2022 20:22
-
-
Save chaddotson/5a1c0eab7147dbab466a2f27a34dc8b4 to your computer and use it in GitHub Desktop.
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
from random import choice | |
t = "" | |
s = " ▁▂▃▄▅▆▇█" | |
z = 0 | |
for i in range(5000): | |
z += choice([-1, 1]) | |
if z < 0: | |
z = z + 2 | |
elif z >= len(s): | |
z = z - 2 | |
t += s[z] | |
print(t) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment