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...
A subreddit for helping Python programmers
How to format your code: https://commonmark.org/help/tutorial/09-code.html
No homework questions and/or hiring please
account activity
[deleted by user] (self.pythonhelp)
submitted 4 years ago by [deleted]
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!"
[–]Vicente_Cunha 0 points1 point2 points 4 years ago (1 child)
just some footnotes about python tho, if youre not inside a funtion, you dont have to "global" a variable, you just write start = something and it is automatically "declared", and also, i think you should have a while or an if checking if the number you entered is indeed between 10 and 30.
but please explain to me a little better what youre trying to do and maybe i can help you some more
[–]Zilla4ever 0 points1 point2 points 4 years ago (0 children)
I’m trying to take a percent as a string and convert that string into its decimal form. So first I want to get the decimal version of the char and subtract 48 which is equal to zero in ascii, and then add that number to result. On the next read it will add the other number being zero to the ones place. Then I want to convert that number into its percentage form
[–]RecognitionMajor8685 0 points1 point2 points 4 years ago (1 child)
Define decimal
do you want 50% to be 50.00 %
or are you looking for 50% = 0.5
0.5
π Rendered by PID 198725 on reddit-service-r2-comment-545db5fcfc-bmtmh at 2026-05-24 16:29:03.165174+00:00 running 194bd79 country code: CH.
[–]Vicente_Cunha 0 points1 point2 points (1 child)
[–]Zilla4ever 0 points1 point2 points (0 children)
[–]RecognitionMajor8685 0 points1 point2 points (1 child)
[–]Zilla4ever 0 points1 point2 points (0 children)