Reputation:
I´m asking about the reason why there is a empty line after printing second block of code.
Code:
print ('a','b', end='', sep='**')
print('c')
Output:
a**bc
Code:
print ('a','b', end='', sep='**')
print ('\n')
print ('c')
Output:
a**b
c
Upvotes: 0
Views: 42
Reputation: 11
the default for print is end='\n' so the second line is actually \n\n try using the end='' like you did in the first line
Upvotes: 1