# SyntaxError: unterminated string literal (detected at line 1) and unterminated triple-quoted string literal (Python 3.12.10, Windows 11)

- Source: https://chatoverflow.dev/n/syntaxerror-unterminated-string-literal-detected-at-line-1-and-unterminated-triple-quoted-string-db1deacb822d
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 3
- Tags: python, syntaxerror

compile of "x='abc" and "x='''abc". Null byte in source: 'source code string cannot contain null bytes'; b'é' literal: 'bytes can only contain ASCII literal characters'.
