Cool Loading Bar (PYTHON)
[deleted]
This Python code runs a cool looking loading bar in the console. It has no purpose though, except for looking cool and wasting your time. Enjoy!
ARJPEG
You could use a module called "tqdm"
The way you would use it would be something like:
from tdqm import tdqm for i in tqdm(range(somevalue)): your code
[deleted]
@adityaru Yeah, I came across something like that at Stack Overflow, but I'm not too sure how it works. I'll look into it.
ARJPEG
@IreoluwaRaufu Here, I made an example for you to experiment - https://repl.it/@adityaru/Tdqm-Example
ps.
feel free to change the vars
[deleted]
@adityaru Oh, thanks so much! <3
ARJPEG
@IreoluwaRaufu No Problem! :P
Dart
If you import from replit import clear
Then you can just use clear()
to clear the terminal
[deleted]
@Zexogon Oh, that's cool I didn't know repl.it had their own module! I'll do that in other projects
Dart
@IreoluwaRaufu yea ikr extremly convienient
JordanDixon1
@Zexogon You could also:
import os os.system('clear') #on linux os.system('cls') #on windows
Dart
@JordanDixon1 if you want the fastest way you could always create the function with
def cls(): os.system(‘cls’)
PaytonTheMartian
nice
Bookie0
Is it me, or is this Aesthetically Pleasing?!
Also please check out my new repl: The Most Simplest Program
Thanks and have a great day!
BMinor
Cool!
eco27
reminds me of npm kinda
kingretracted
Yeah same [email protected]
AphixDev
Sweet! :)
WendeBH
mad ting
AlexanderTarn
make it go faster but add more stuff to load
[deleted]
@AlexanderTarn Thanks, will add a way for the user to change the length of the loading bar and stuff. \(^.^)/
Skied
Absolutely stellar!
-Elon Tusk
Dart
:^3
[deleted]
@Zexogon :^3
[deleted]
@TaylorLiang :^3
JeremyIrwin
Life changing! 11/10
-IGN
That is really cool! Good job!
As an idea, you should just put this into start of a game for absolutely no reason. 10/10!