3 ms·
Looks fantastic! I can't read the post, but I think you can simplify the 10 print Python code to while True: print(choice("\\/"), end="") (the `format` call
by ggorlen 4y ago
Looks fantastic! I can't read the post, but I think you can simplify the 10 print Python code to
while True: print(choice("\\/"), end="")
(the `format` call doesn't seem needed and `choice` works on any iterable, including strings of characters).
Al Sweigart has a repository of "scroll art" similar to 10 print that might interest you: https://github.com/asweigart/scrollart https://github.com/asweigart/scrollart
- bronikowski 4y agoI wanted to be explicit with my iterables for people who might not know that string is a list of chars. The format() call, I can't tell what I was thinking, probably nothing good. Thanks!