0

"A base-n literal consists of the digits 0 to n-1, with a to z (or A to Z) having values 10 to 35."??

The quote (in the title) is from:- https://docs.python.org/3/library/functions.html#int But... I can't grasp it Is it implying that I can do this;- a = 10 print(int("010", base=a+6)) It runs ok...just not sure if that is what the quote is implying (If someone responds.....I will get back to you..... tomorrow)

8th Dec 2020, 12:11 AM
rodwynnejones
rodwynnejones - avatar
1 Resposta
0
Thank you. I first though....for .example...if you use "a" it would have a default value of 10 ( and then "b" would be 11 and-so-on). Thanks again.
8th Dec 2020, 1:54 PM
rodwynnejones
rodwynnejones - avatar