+ 1

Why is end keyword used in python?[solved]

22nd Oct 2018, 1:40 PM
Ayan Acharjee
Ayan Acharjee - avatar
8 Respostas
+ 5
''' print(value, ..., sep=' ', end='\n', file=sys.stdout, flush=False) ''' this is the complete print function😀
22nd Oct 2018, 3:32 PM
Flandre Scarlet
Flandre Scarlet - avatar
+ 4
before the outputs are flushed, they're temporarily stored and print out altogether at last, but if you set flush True, all stored will be forced to print out immediately😀
22nd Oct 2018, 8:28 PM
Flandre Scarlet
Flandre Scarlet - avatar
+ 2
i found the answer, usually print statement adds \n by default so we get prints in next line using end=" " or end=' ' within print statements we can get statements printed in same line
22nd Oct 2018, 1:42 PM
Ayan Acharjee
Ayan Acharjee - avatar
+ 1
Awesome! Since you've answered your own question, you might want to consider labeling it as [Solved] in the title. It'd help us reach others faster. Thank you!
22nd Oct 2018, 3:30 PM
Kishalaya Saha
Kishalaya Saha - avatar
+ 1
what means flush?
22nd Oct 2018, 8:13 PM
Roneel
Roneel - avatar
+ 1
just edit your post😂
23rd Oct 2018, 4:41 AM
Flandre Scarlet
Flandre Scarlet - avatar
+ 1
ok 😂
23rd Oct 2018, 4:42 AM
Ayan Acharjee
Ayan Acharjee - avatar
0
how to label it as solved??
23rd Oct 2018, 4:37 AM
Ayan Acharjee
Ayan Acharjee - avatar