Looking for reliable answers? Westonci.ca is the ultimate Q&A platform where experts share their knowledge on various topics. Ask your questions and receive detailed answers from professionals with extensive experience in various fields. Connect with a community of professionals ready to provide precise solutions to your questions quickly and accurately.

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. '
We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. We appreciate your time. Please revisit us for more reliable answers to any questions you may have. Westonci.ca is here to provide the answers you seek. Return often for more expert solutions.