Share your repls and programming experiences

← Back to all posts
Cool Loading Bar (PYTHON)

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!

Ov3R10rd (64)

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!


@Ov3R10rd Thanks, will do! \(0.0)/

ARJPEG (149)

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

@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 (149)

@IreoluwaRaufu Here, I made an example for you to experiment -

feel free to change the vars


@adityaru Oh, thanks so much! <3

Dart (1124)

If you import from replit import clear
Then you can just use clear() to clear the terminal


@Zexogon Oh, that's cool I didn't know had their own module! I'll do that in other projects

Dart (1124)

@IreoluwaRaufu yea ikr extremly convienient

JordanDixon1 (449)

@Zexogon You could also:

import os
os.system('clear') #on linux
os.system('cls') #on windows
Dart (1124)

@JordanDixon1 if you want the fastest way you could always create the function with

def cls():
ebest (664)

LOL I just made it more useless



@ebest Lol, it's an infinite loop of useless loading.

Bookie0 (5654)

Wow @ebest that system overloading and restarting was a nice touch if humor!

ebest (664)



HYPR (8)

I'm new to Python so I think this is really cool! Good job. (I also wanna learn JavaScript)


@HYPR Thanks, I'm sure you can learn quickly! :)

AphixDev (216)

@HYPR Python's a great place to start! I started with HTML but my transition to game dev with ue4 was inspired by Python. Eventually, I learned C++ because I realized how widespread it is. Good Luck with the coding adventures that await you!

Bookie0 (5654)

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!

AlexanderTarn (278)

make it go faster but add more stuff to load


@AlexanderTarn Thanks, will add a way for the user to change the length of the loading bar and stuff. \(^.^)/

Skied (0)

Absolutely stellar!
-Elon Tusk

JeremyIrwin (42)

Life changing! 11/10