Jan-15-2020, 03:59 PM
(This post was last modified: Jan-15-2020, 03:59 PM by prateekshaw.)
Hi,
Check this
https://docs.python.org/3/library/functions.html#print
Check this
https://docs.python.org/3/library/functions.html#print
for x in "Python": ...: print(x,end='')
print(x,y,sep='')So basically every print automatically add \n to end that is reason why we see next line. But we can override this by setting end value.