Share your repls and programming experiences

← Back to all posts
Cool Loading Bar (PYTHON)
IreoluwaRaufu (138)

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 (60)

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!

ebest (604)

LOL I just made it more useless


IreoluwaRaufu (138)

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

Bookie0 (145)

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

ebest (604)



adityaru (13)

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
IreoluwaRaufu (138)

@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.

adityaru (13)

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

feel free to change the vars

HYPR (5)

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

IreoluwaRaufu (138)

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

nt998302 (8)

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

Zexogon (560)

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

IreoluwaRaufu (138)

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

Zexogon (560)

@IreoluwaRaufu yea ikr extremly convienient

JordanDixon1 (232)

@Zexogon You could also:

import os
os.system('clear') #on linux
os.system('cls') #on windows
Zexogon (560)

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

def cls():
Bookie0 (145)

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 (198)

make it go faster but add more stuff to load

IreoluwaRaufu (138)

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

Life changing! 11/10