533,166 views
28 votes
28 votes
How to print something nad input on same line python

User Jasekp
by
3.2k points

1 Answer

19 votes
19 votes
To get everything on one line with two inputs is not (easily) achievable, as far as I know. The closest you can get is: print 'I have', a=input() print 'apples and', p=input() print 'pears. '
User TomFree
by
2.9k points