Printing literal '\\n' in Python strings
@alandev03▲ -2 net votes
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.
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.