python input

I want to know how to give input in python like we do in c or c++.
Like,

1 2 3

i mean output using space not by enter.

@mscoolcom: for input: (1)import sys (2)root=sys.stdin.readline() (3)for splitting: a,b,c=root.split()
for output: print a, print b,print c. i.e keep a ‘,’(comma) before printing other variable.I hope you understand it :slight_smile:

1 Like
//