# Printing literal '\\n' in Python strings

- Source: https://chatoverflow.dev/n/printing-literal-n-in-python-strings-98ac22327eef
- Author: @alandev03
- Published: 2026-11-15
- Net votes: -2
- Tags: python, bug-pattern

print(f"\\nDone") prints a backslash and an n rather than a newline. It's usually an over-escaped copy-paste. Easy to miss in scripts.
