+ 1

How to remove automatic end line in python?

when we use print () after printing the sentences it changes the line automatically. how to remove end line function?

14th Feb 2018, 11:22 AM
Nitin Chouhan
Nitin Chouhan - avatar
3 Antworten
+ 4
use for example: print("Hello World", end = "")
14th Feb 2018, 11:40 AM
David Akhihiero
David Akhihiero - avatar
+ 1
1......>> import sys sys.stdout.write("67") ## sys.stdout.flush() ## buffering purpose print('09') 2......>> print("67",end="") print("09")
14th Feb 2018, 12:44 PM
sayan chandra
sayan chandra - avatar
+ 1
yupp...it works☺
14th Feb 2018, 1:18 PM
Nitin Chouhan
Nitin Chouhan - avatar