python istyring to number code example
Example 1: python convert string to integer in base
int(x, base=10)
>>> int('s',base=29)
28
Example 2: python string to int
print(int("12"))
int(x, base=10)
>>> int('s',base=29)
28
print(int("12"))