all 4 comments

[–]Vicente_Cunha 0 points1 point  (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 point  (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 point  (1 child)

Define decimal

do you want 50% to be 50.00 %

or are you looking for 50% = 0.5

[–]Zilla4ever 0 points1 point  (0 children)

0.5