How to print a linebreak in a python function? The newline character is actually '\n'. You have your slash backwards, it should be "\n"