how to not print a new line in for loop python code example Example: print no new line python print('*', end='') print('*', end='') print('*', end='') # output: # ***