Learn how to convert a string to an integer in Python. You can convert strings using different formats such as binary, hexadecimal and octal.