ValueError: invalid literal for int () with base 10: - Stack Overflow Here you are trying to convert a string into int type which is not base-10 you can convert a string into int only if it is base-10 otherwise it will throw ValueError, stating invalid literal for int () with base 10
How to fix SyntaxWarning: invalid escape sequence in Python? Docstrings are another one to remember: docstrings are string literals too, and invalid \ sequences are invalid in docstrings too! Use r"""raw strings""" for docstrings if they must contain \