answered 8 years ago
\n is not defined, you have to consider the string '\n' (with quotes):
\n
'\n'
sage: print('text',end='\n') text