I know..... one way to omitting new lines in Python with concatenation:
a = 'strin'
b = 2
print str(b)+a
Yes finally I found the answer.
We can omit newlines in 3:
"+" (Concatenation)
Ex:
a = sachin
b = 'tendulkar'
a += b
print(a)
By using "," (comma) see above answers
By using write() function:
import sys
write = sys.stdout.write
write('20)
write('17')
Output:
2017
The write()
method does not add a newline character ('\n') to the end of the string.