Doubt in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Doubt in python

I am new to python and here is my doubt ,How can i take multiple inputs in a single line from the user in python?

6th Aug 2018, 6:01 PM
karanam Ravikarthik
karanam Ravikarthik - avatar
2 Answers
+ 1
print(input('Enter 1st: '),input('Enter 2nd: '),input('third: '),input('4th: '))
6th Aug 2018, 9:20 PM
E_E Mopho
E_E Mopho - avatar
0
receive the single input and then split by spaces
6th Aug 2018, 6:23 PM
JME