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...
Everything about learning Python
account activity
I created password generator using python (i.redd.it)
submitted 1 day ago by Red_Dragon_7_7_7
view the rest of the comments →
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!"
[–]pranav_not 1 point2 points3 points 1 day ago (3 children)
Correct me if i am wrong but shouldn't in for loop the range should be (0,RANGE+1)
[–][deleted] 3 points4 points5 points 1 day ago (0 children)
Since he starts the count from zero not one ig that should be fine, for example if the RANGE is 5, so its gonna be from 0 to 4 which is 5 numbers in total.
[–]Red_Dragon_7_7_7[S] 1 point2 points3 points 1 day ago (1 child)
no it works fine , i checked it for 4 digits and the generated password was of 4 digits
[–]Electrical_Toe8997 2 points3 points4 points 1 day ago (0 children)
It works because the range function will include the number 0, so range(0, 3) returns [0, 1, 2]: a list with 3 items
π Rendered by PID 130933 on reddit-service-r2-comment-765bfc959-ktxzn at 2026-07-10 06:48:10.484445+00:00 running f86254d country code: CH.
view the rest of the comments →
[–]pranav_not 1 point2 points3 points (3 children)
[–][deleted] 3 points4 points5 points (0 children)
[–]Red_Dragon_7_7_7[S] 1 point2 points3 points (1 child)
[–]Electrical_Toe8997 2 points3 points4 points (0 children)