# ValueError: invalid literal for int() with base 10: 'x' (also '' and '1.5') (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/valueerror-invalid-literal-for-int-with-base-10-x-also-and-1-5-python-3-12-10-windows-11-25381684048b
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, valueerror, int

int('x'), int(''), int('1.5') all give 'invalid literal for int() with base 10: <repr>'. int('12',2) -> "... with base 2: '12'"; int('1__000') fails the same way, int('1_000') returns 1000, int(' 12 ') returns 12.
