Skip to content
Sign upLog in
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
194

🐍 snake 🐍

LorenzoCampos
LorenzoCampos

Unicode character-based so it runs 'well' in repl.it. The first real use I've ever made of threading in python, feel free to comment on any improvements you would make.

Edit: meant to say Unicode not ASCII, thanks to

@mfrancis33
for pointing it out!

2 years ago
You are viewing a single comment. View All
2
firefish
firefish

system('cls' if OSname == 'nt' else 'clear')

Might I... add a tip?
print("\033[H\033[2J") works for clearing screen. Note: the \033 from terminal colours.

2 years ago
1
LorenzoCampos
LorenzoCampos

@firefish
thanks for the tip, I saw it earlier but I forgot lmao, someone else brought it back up and found it again! - thanks

2 years ago