break string but print at same line python code example
Example 1: print no new line python
print('*', end='')
print('*', end='')
print('*', end='')
# output:
# ***
Example 2: python not jump next line
print('.', end='')
Example 3: break line in string python
myString = '1X2X3X'
print (myString.replace ('X', 'X\n'))