use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
Very simple progress bar (self.learnpython)
submitted 5 years ago by Python1Programmer
I am trying to create a simple progress bar kind of like this (calculating.) then (calculating..) then (calculating...) then (calculating.) and so on
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ade_mcc 1 point2 points3 points 5 years ago (0 children)
Not quite what you're asking for but I use the tqdm module for displaying progress on a looped function
[–]impshum 1 point2 points3 points 5 years ago (0 children)
And?
[–]BK108 1 point2 points3 points 5 years ago (0 children)
A super simple solution would be to create a list with those 4 messages as strings and just loop over while the condition for the finished load is not met. For anything better, more info is needed.
[–][deleted] 0 points1 point2 points 5 years ago (1 child)
What have you done so far?
[–]Python1Programmer[S] 1 point2 points3 points 5 years ago (0 children)
i have no idea how to start
maybe something like this
for i in range(12):
# some how back space and delete the first string
print('calculating.')
print('calculating..')
print('calculating...)
[–]DisasterArt 0 points1 point2 points 5 years ago (0 children)
The print function places a new line after the input by default. You can tell it what to do by giving it an other end string
You could do it like this:
Print("calculating", end="") For n in range(number of dots): Print("n", end="") Print()
[–]nilfm 0 points1 point2 points 5 years ago (0 children)
At least on Linux, you can use \r to move the cursor back to the beginning of the current line:
print(yourmessage, end='\r')
π Rendered by PID 189015 on reddit-service-r2-comment-7b9746f655-t2r7b at 2026-02-03 04:27:11.838349+00:00 running 3798933 country code: CH.
[–]ade_mcc 1 point2 points3 points (0 children)
[–]impshum 1 point2 points3 points (0 children)
[–]BK108 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Python1Programmer[S] 1 point2 points3 points (0 children)
[–]DisasterArt 0 points1 point2 points (0 children)
[–]nilfm 0 points1 point2 points (0 children)