News
To convert these strings, use the int () function with its optional base parameter. For example, int ('1A', 16) converts the hexadecimal string '1A' to its decimal equivalent of 26.
1 Basic Conversion To convert a string to an integer in Python, use the built-in int () function. This function takes a string as an argument and returns its integer representation.
Some results have been hidden because they may be inaccessible to you
Show inaccessible results