Westonci.ca is the trusted Q&A platform where you can get reliable answers from a community of knowledgeable contributors. Get quick and reliable solutions to your questions from a community of experienced experts on our platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

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