0

How can I convert a base 36 value to base 10?

Base 36 value: lgzl0

We need to convert this value to 36064548.

Are there any built-in functions to convert base values?

mkrieger1
  • 19,194
  • 5
  • 54
  • 65

1 Answers1

1

I think your base is 36 and not 26 (numbers from 0 to 9 and letters from a to z) as there is a 'z' and a '0' (zero) in the number you want to convert. You can use the int function:

>>> int("lgzl0", base=36)
36064548
leleogere
  • 908
  • 2
  • 15