Join IDNLearn.com to access a wealth of knowledge and get your questions answered by experts. Whether it's a simple query or a complex problem, our community has the answers you need.

how to print something nad input on same line python

Sagot :

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. '