The most beautiful thing (a cactus (obviously)) can now be endlessly shown in front of your face.
I feel like you went through necessary work, is there a reverse function for strings in Python? If so, it would've used a single variable.
Also, the loop constantly joins the arrays, you could've done this:
cactus2 = "\n".join([ ..., ... ])
Now it just sets the variable and reads from it.
Great job! I'd recommend using sys.stdout.write instead of print though since it is faster and also, I'd recommend using
"\n".join(cactus) to put the entire ASCII cactus into one print function for speed as well. I did it in my fork if you want to see what I mean https://repl.it/@AmazingMech2418/ASCII-Cactus .
@Highwayman Remember the thing I was doing trying to see all of the Repl.it languages not in the official list? I figured out why it wouldn't work... Repl.it has request rate limits. I ended up getting an error saying that access was denied to my IP address... Do you have any idea how to bypass the rate limits or at least do you know what the limit is so that I can slow down the program to not go over?
3 hourzzzzz later
I’m afraid I lost count; I was at about 1270 I think
Lol it’s cool
edit: thanks for the 7 upvotes!
This is cool but you also could have just wrapped the art in comment strings ->
""" art """ and this would have treated the art as strings while also exiting backslashes easily.