196k views
15 votes
How to print something nad input on same line python

User Sigman
by
3.4k points

1 Answer

8 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 LanderV
by
3.4k points