print (X, '\n') in python prints \n in output code example
Example: print no new line python
print('*', end='')
print('*', end='')
print('*', end='')
# output:
# ***
print('*', end='')
print('*', end='')
print('*', end='')
# output:
# ***