Hacker News new | ask | show | jobs
by ggorlen 1421 days 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

1 comments

I 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!