Connect with knowledgeable individuals and find the best answers at IDNLearn.com. Get accurate and detailed answers to your questions from our knowledgeable and dedicated community members.

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